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.zsh16
1 files changed, 13 insertions, 3 deletions
diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh
index 3243750..5c4d609 100644
--- a/config/essentials/zsh/functions.zsh
+++ b/config/essentials/zsh/functions.zsh
@@ -29,7 +29,7 @@ nvf() {
fi
if test -f "$match"
then
- vim "$match" && return
+ $EDITOR "$match" && return
else
die "no match." && return 1
fi
@@ -103,10 +103,10 @@ esc () {
}
delfile () {
- curl "${2:-https://up.kallipso.be/delete/$1}"
+ curl "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"
}
upfile () {
- curl -F "file=@\"$1\"" ${2:-http://0x0.st}
+ curl -F "file=@\"$1\"" ${2:-https://upfast.cronyakatsuki.xyz}
}
sgd () {
@@ -250,3 +250,13 @@ fpass () {
fzf |
xargs pass show -c
}
+
+oclip ()
+{
+ printf "\033]52;c;$(echo -n "$@" | base64)\a"
+}
+
+sms ()
+{
+ ssh phone sendmsg "$1" "'$2'"
+}