diff options
author | Florian Pritz <f-p@gmx.at> | 2009-02-22 16:52:04 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-02-22 16:52:04 +0100 |
commit | 588814116db57cda9c41e649aa80e720f599eda1 (patch) | |
tree | 7895da67e3c763c6e87d9d98c09da218649f9cf1 /.zsh/rc/30functions | |
parent | 2858c9443f704487e6d80dc4850872c507d73fe3 (diff) | |
download | dotfiles-588814116db57cda9c41e649aa80e720f599eda1.tar.gz dotfiles-588814116db57cda9c41e649aa80e720f599eda1.tar.xz |
update
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 |