diff options
Diffstat (limited to '.zsh/rc/30functions')
-rw-r--r-- | .zsh/rc/30functions | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.zsh/rc/30functions b/.zsh/rc/30functions index 24a2ddc..5bacb00 100644 --- a/.zsh/rc/30functions +++ b/.zsh/rc/30functions @@ -37,6 +37,10 @@ ls () { echo "${PURPLE}Files: ${BLUE}$(/bin/ls -l $@ | grep -v "^[l|d|total]" | wc -l) ${GREEN}--- ${PURPLE}Directories: ${BLUE}$(/bin/ls -l $@ | grep "^d" | wc -l)${NC}" } +password () { + < /dev/urandom tr -dc A-Za-z0-9_ | head -c$1 +} + # jump between directories # Copyright 2005 Nikolai Weibull <nikolai@bitwi.se> # notice: option AUTO_PUSHD has to be set |