X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=ffaae2fb9faad34d8c201d62a7fb82739604ee1d;hb=c33b019fd8c97b34b18baf0c9956649e690c6f58;hp=eefb29d780026bd30c9caa41e2984c341363c0d4;hpb=0ffab22e438e7464320dd9ec344c6062124e99c0;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index eefb29d..ffaae2f 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2619,23 +2619,7 @@ setenv() { typeset -x "${1}${1:+=}${(@)argv[2,$#]}" } # csh compatibility #f1# Reload an autoloadable function freload() { while (( $# )); do; unfunction $1; autoload -U $1; shift; done } - -# TODO: Who really uses reload()? The proper way to reload a zsh setup is to -# actually restart the shell via 'exec zsh'. And reload with arguments is the -# same as freload() above. -ft -#f1# Reload zsh setup -reload() { - if [[ "$#*" -eq 0 ]] ; then - [[ -r ~/.zshrc ]] && . ~/.zshrc - else - local fn - for fn in "$@"; do - unfunction $fn - autoload -U $fn - done - fi -} -compdef _functions reload freload +compdef _functions freload #f1# List symlinks in detail (more detailed version of 'readlink -f' and 'whence -s') sll() { @@ -3102,7 +3086,7 @@ alias lss='ls -l *(s,S,t)' # only files with setgid/setuid/sticky fl #a2# Only show 1st ten symlinks alias lsl='ls -l *(@[1,10])' # only symlinks #a2# Display only executables -alias lsx='ls -l *(*[1,10])' # only executables +alias lsx='ls -l *(*)' # only executables #a2# Display world-{readable,writable,executable} files alias lsw='ls -ld *(R,W,X.^ND/)' # world-{readable,writable,executable} files #a2# Display the ten biggest files @@ -3341,16 +3325,11 @@ mdiff() { memusage() { ps aux | awk '{if (NR > 1) print $5; if (NR > 2) print "+"} END { print "p" }' | dc } -#f5# Show contents of tar file +#f5# Show contents of gzipped tar file shtar() { emulate -L zsh gunzip -c $1 | tar -tf - -- | $PAGER } -#f5# Show contents of tgz file -shtgz() { - emulate -L zsh - tar -ztf $1 | $PAGER -} #f5# Show contents of zip file shzip() { emulate -L zsh