dotfiles/dot_zsh_aliases

104 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-03-01 08:17:42 +00:00
# Example aliases
# alias zshconfig="mate $HOME/.zshrc"
# alias ohmyzsh="mate $HOME/.oh-my-zsh"
2019-03-01 08:17:42 +00:00
#
# Git
source "$HOME/.aliases/git.sh"
2019-07-18 09:55:54 +00:00
2020-06-30 12:44:23 +00:00
# Docker
alias lzd='lazydocker'
2020-07-03 06:13:15 +00:00
# PM : Jira & trello & asana & moro
source "$HOME/.aliases/backlog.sh"
2019-07-18 09:55:54 +00:00
# News
source "$HOME/.aliases/news.sh"
2019-07-18 09:55:54 +00:00
2019-08-09 02:36:12 +00:00
# Twitter
source "$HOME/.aliases/twitter.sh"
2019-08-09 02:36:12 +00:00
2020-06-30 12:22:03 +00:00
# RSS
source "$HOME/.aliases/rss.sh"
2020-06-30 12:22:03 +00:00
# Search
source "$HOME/.aliases/search.sh"
2019-07-18 09:55:54 +00:00
# Events
alias agenda='calendar'
alias mails="gmail && gmail2"
alias mailperso="gmail2"
alias mailpro="gmail"
# Management / Security / SSH / SSL
source "$HOME/.aliases/secure.sh"
# Network
source "$HOME/.aliases/network.sh"
# Downloads
alias get="curl -O -L" # Download file and save it with filename of remote file
2020-06-30 12:44:23 +00:00
# Files & folder tricks
source "$HOME/.aliases/files.sh"
2020-06-30 12:44:23 +00:00
# System Utils
2020-06-30 12:44:23 +00:00
alias systeminfo='neofetch'
alias monitoring='glances'
alias reload="exec ${SHELL} -l" # Reload the shell (i.e. invoke as a login shell)
alias sc="source $HOME/.zshrc"
2020-07-02 13:50:30 +00:00
# Infrastructure
alias awsls='awsls -profile default -region eu-west-1 --attributes tags aws_instance'
2020-06-30 12:44:23 +00:00
# Package management tricks
alias npmlist='npm list -g --depth 0'
alias pip='pip3'
# RTFM
alias learnmore="apropos . | sort --random-sort | awk 'NR == 1 {print$1}' | cut -d'(' -f 1 | xargs man"
alias help='tldr'
alias latency='curl cheat.sh/latency'
# Misc
source "$HOME/.aliases/misc.sh"
2020-06-30 12:44:23 +00:00
# Linters
alias checken="aspell check -d en"
alias checkfr="aspell check -d fr"
alias fixallscripts="shfmt -w -l -i 2 -ci **/*.sh"
2020-06-30 12:44:23 +00:00
# Development
alias gw='./gradlew'
2020-06-30 12:44:23 +00:00
# NSFW
alias irc='weechat'
# Terraform
source "$HOME/.aliases/terraform.sh"
source "$HOME/.aliases/terragrunt.sh"
2019-06-18 08:57:44 +00:00
2020-06-30 12:44:23 +00:00
# Fun
alias moon='curl "wttr.in/Moon?lang=fr"'
alias lune='moon'
alias unix='curl -L http://git.io/unix'
alias coffee="curl -L http://git.io/coffee"
alias hotcoffee="curl -sL git.io/hotcoffee | sh"
2020-06-21 10:55:38 +00:00
# Music
source "$HOME/.aliases/music.sh"
2020-06-21 10:55:38 +00:00
2020-06-21 10:38:50 +00:00
# K8S
alias k9s='COLORTERM=256bit k9s --all-namespaces'
alias 9=k9s
alias K=k9s
# Macos specifics
case "$(uname -s)" in
Darwin)
source "$HOME/.aliases/macos.sh"
;;
esac
2019-06-18 08:47:12 +00:00
2019-07-18 09:55:54 +00:00
# This is the end ;( ... for now ;D