add ip color, alias cantine, kubernetes completion

This commit is contained in:
Lazare Olivry 2019-04-11 10:15:23 +02:00
parent e7aad58047
commit 32c6947516

17
zshrc
View file

@ -61,8 +61,17 @@ colors
# Check for system updates inthe background # Check for system updates inthe background
(check_sys_update&) 2> /dev/null (check_sys_update&) 2> /dev/null
### TODO WHERE ARE THE ALIASES # Configuration for kubectl & helm
#if [ $commands[kubectl] ]; then
source <(kubectl completion zsh)
#fi
export TILLER_NAMESPACE=gitlab-ci
#if [ $commands[helm] ]; then
source <(helm completion zsh)
#fi
### TODO WHERE ARE THE ALIASES
########### ###########
# Aliases # # Aliases #
########### ###########
@ -80,8 +89,8 @@ alias grep="grep --color"
#alias ssh='ssh -A' #alias ssh='ssh -A'
# alias -s txt=cat # alias -s txt=cat
alias rm='rm -I' alias rm='rm -I'
alias ipa='ip route && echo && ip address' alias ipa='ip -c route && echo && ip -c address'
alias ipr='ip address && echo && ip route' alias ipr='ip -c address && echo && ip -c route'
alias which='which -a' alias which='which -a'
# Le fameux cd ...etc # Le fameux cd ...etc
alias -g ...='../..' alias -g ...='../..'
@ -103,7 +112,7 @@ alias ytmp3='youtube-dl -x --audio-format mp3 --no-playlist -o "%(title)s.%(ext)
alias zbarcam='LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so zbarcam' alias zbarcam='LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so zbarcam'
alias gitprunelocal="git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d" alias gitprunelocal="git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d"
alias gitprunelocalforce="git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D" alias gitprunelocalforce="git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D"
alias cantine="curl -s https://timechef.elior.com/api/restaurant/22/menus | jq '.[0].famillePlats[0].plats[].libelle'" alias cantine="curl -s https://timechef.elior.com/api/restaurant/22/menus | jq -r '.[0].famillePlats[0].plats[].libelle'"
# Term specific hacks # Term specific hacks
case $TERM in case $TERM in