Added makepass function

This commit is contained in:
Veit Heller
2014-10-02 21:46:53 +02:00
parent d81767b2e6
commit 8c848c2517
2 changed files with 12 additions and 0 deletions

View File

@@ -60,6 +60,12 @@ extract(){
fi fi
} }
makepass(){
cat /dev/urandom | base64 | head -c 20
echo ''
}
mcd(){ mcd(){
mkdir -p $1 mkdir -p $1
cd $1 cd $1

6
zshrc
View File

@@ -129,6 +129,12 @@ save_dotfiles(){
cp ~/.zshrc ${DOTPATH}zshrc cp ~/.zshrc ${DOTPATH}zshrc
} }
makepass(){
cat /dev/urandom | base64 | head -c 20
echo ''
}
upgrade () { upgrade () {
if [ ! $1 ] ; then if [ ! $1 ] ; then
print "local upgrade" print "local upgrade"