summaryrefslogtreecommitdiff
path: root/config/essentials/zsh/functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials/zsh/functions.zsh')
-rw-r--r--config/essentials/zsh/functions.zsh12
1 files changed, 10 insertions, 2 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index aa1d640..3243750 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -103,10 +103,10 @@ esc () {
}
delfile () {
- curl ${2:-"https://up.kallipso.be/delete/$1"}
+ curl "${2:-https://up.kallipso.be/delete/$1}"
}
upfile () {
- curl -F "file=@\"$1\"" ${2:-"https://up.kallipso.be"}
+ curl -F "file=@\"$1\"" ${2:-http://0x0.st}
}
sgd () {
@@ -242,3 +242,11 @@ addedkeys () {
fi
done | sed "s,$HOME/.ssh/,,"
}
+
+fpass () {
+ find $HOME/.password-store -type f -not -path ".git" |
+ grep "\.gpg$" |
+ sed "s,$HOME/.password-store/,,;s,\.gpg$,," |
+ fzf |
+ xargs pass show -c
+}