diff --git a/zsh/functions/prompt_git.sh b/zsh/functions/prompt_git.sh new file mode 100755 index 0000000..ad0b612 --- /dev/null +++ b/zsh/functions/prompt_git.sh @@ -0,0 +1,4 @@ +# Override the git prompt, because I don't want it in my left-hand prompt, and I can't use the variable to unset it for some reason +prompt_git() { + +} diff --git a/zsh/functions/qr.sh b/zsh/functions/qr.sh new file mode 100755 index 0000000..e577adc --- /dev/null +++ b/zsh/functions/qr.sh @@ -0,0 +1,3 @@ +qrnet () { + echo "WIFI:S:$1;T:WPA;$2;;"|curl -F-=\<- qrenco.de +} diff --git a/zsh/functions/rand.sh b/zsh/functions/rand.sh new file mode 100755 index 0000000..6a60057 --- /dev/null +++ b/zsh/functions/rand.sh @@ -0,0 +1,4 @@ +#quick and dirty random string generator +rand () { + cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1|tr -d '\n' + }