mirror of https://github.com/akelge/zsh
parent
106aaf9d34
commit
8dce8a067e
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
3
zshrc
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue