From 8dce8a067e39098a115b627baffd9d3455409444 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Fri, 14 Oct 2016 12:07:38 +0200 Subject: [PATCH] Added alias myip Clean up completion --- zsh.d/20-complete.zsh | 8 +++++++- zsh.d/30-aliases.zsh | 1 + zshrc | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/zsh.d/20-complete.zsh b/zsh.d/20-complete.zsh index 1d3a6d1..77e775a 100644 --- a/zsh.d/20-complete.zsh +++ b/zsh.d/20-complete.zsh @@ -1,6 +1,12 @@ ####################################################################################### # 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; compctl -g "*(-/)" + -g ".*(-/)" cd diff --git a/zsh.d/30-aliases.zsh b/zsh.d/30-aliases.zsh index 3feecea..cb207ea 100644 --- a/zsh.d/30-aliases.zsh +++ b/zsh.d/30-aliases.zsh @@ -29,6 +29,7 @@ alias vi="vim " alias du1="du -h --max-depth=1" alias psg="ps ax|grep " +alias myip="dig +short myip.opendns.com @resolver1.opendns.com" # Global Aliases # diff --git a/zshrc b/zshrc index d3eab43..e6841dc 100644 --- a/zshrc +++ b/zshrc @@ -17,8 +17,11 @@ KERNEL=`uname -s` LIBRARY=${BASE}/zsh.d KERNLIB=${LIBRARY}/${KERNEL} +echo $KERNEL + function loadRC { # [ -d $1 ] && cd $1 || exit 1 + # if [ -d $1/zshfunctions ]; then fpath=($1/zshfunctions $fpath)