From c86326c0654c0f84f66a66f2b232c9bce5ab6e9c Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Wed, 9 Jan 2019 14:03:21 -0500 Subject: [PATCH] Moved functions to an included directory --- zsh/functions/prompt_git.sh | 4 ++++ zsh/functions/qr.sh | 3 +++ zsh/functions/rand.sh | 4 ++++ 3 files changed, 11 insertions(+) create mode 100755 zsh/functions/prompt_git.sh create mode 100755 zsh/functions/qr.sh create mode 100755 zsh/functions/rand.sh 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' + }