X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=45584c36cced7b0fcf7e14bdbe7b0420d496a3dd;hb=f56e81c9c9fd6ef88daad8b7422be2c847473af4;hp=ec11810ec66b26c4b19b11314530cfe4f8ecd779;hpb=309be6f7e8dfa1eb56a7948553ff115469f2d281;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index ec11810..45584c3 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3247,9 +3247,6 @@ ansi-colors() { done } -#f5# Find all files in \$PATH with setuid bit set -suidfind() { ls -latg $path | grep '^...s' } - # TODO: So, this is the third incarnation of this function!? #f5# Reload given functions refunc() { @@ -3260,55 +3257,6 @@ refunc() { } compdef _functions refunc -# a small check to see which DIR is located on which server/partition. -# stolen and modified from Sven's zshrc.forall -#f5# Report diskusage of a directory -dirspace() { - emulate -L zsh - if [[ -n "$1" ]] ; then - for dir in "$@" ; do - if [[ -d "$dir" ]] ; then - ( cd $dir; echo "-<$dir>"; du -shx .; echo); - else - echo "warning: $dir does not exist" >&2 - fi - done - else - for dir in $path; do - if [[ -d "$dir" ]] ; then - ( cd $dir; echo "-<$dir>"; du -shx .; echo); - else - echo "warning: $dir does not exist" >&2 - fi - done - fi -} - -# % slow_print `cat /etc/passwd` -#f5# Slowly print out parameters -slow_print() { - for argument in "$@" ; do - for ((i = 1; i <= ${#1} ;i++)) ; do - print -n "${argument[i]}" - sleep 0.08 - done - print -n " " - done - print "" -} - -#f5# Show some status info -status() { - print - print "Date..: "$(date "+%Y-%m-%d %H:%M:%S") - print "Shell.: Zsh $ZSH_VERSION (PID = $$, $SHLVL nests)" - print "Term..: $TTY ($TERM), ${BAUD:+$BAUD bauds, }$COLUMNS x $LINES chars" - print "Login.: $LOGNAME (UID = $EUID) on $HOST" - print "System: $(cat /etc/[A-Za-z]*[_-][rv]e[lr]*)" - print "Uptime:$(uptime)" - print -} - #f5# Set all ulimit parameters to \kbd{unlimited} allulimit() { ulimit -c unlimited