Added alias myip

Clean up completion
This commit is contained in:
Andrea Mistrali 2016-10-14 12:07:38 +02:00
parent 106aaf9d34
commit 8dce8a067e
3 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,12 @@
####################################################################################### #######################################################################################
# Start autocomplete # Start autocomplete
autoload -U compinit; compinit -u # autoload -U compinit; compinit -u
autoload -Uz compinit
if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then
compinit
else
compinit -C
fi
autoload -U compsys; autoload -U compsys;
compctl -g "*(-/)" + -g ".*(-/)" cd compctl -g "*(-/)" + -g ".*(-/)" cd

View File

@ -29,6 +29,7 @@ alias vi="vim "
alias du1="du -h --max-depth=1" alias du1="du -h --max-depth=1"
alias psg="ps ax|grep " alias psg="ps ax|grep "
alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
# Global Aliases # Global Aliases
# #

3
zshrc
View File

@ -17,8 +17,11 @@ KERNEL=`uname -s`
LIBRARY=${BASE}/zsh.d LIBRARY=${BASE}/zsh.d
KERNLIB=${LIBRARY}/${KERNEL} KERNLIB=${LIBRARY}/${KERNEL}
echo $KERNEL
function loadRC { function loadRC {
# [ -d $1 ] && cd $1 || exit 1 # [ -d $1 ] && cd $1 || exit 1
#
if [ -d $1/zshfunctions ]; then if [ -d $1/zshfunctions ]; then
fpath=($1/zshfunctions $fpath) fpath=($1/zshfunctions $fpath)