diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-01 10:40:01 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-07-01 10:40:01 +0200 |
commit | e7ebdcd1ed66f9833906fbf154607cdbd46fdae2 (patch) | |
tree | d857f3a5a219a038a77113d8d412c824b225e56d /config/essentials/zsh/functions.zsh | |
parent | e0fab4836639db0c9b4719551aa24cc26850b358 (diff) | |
parent | b3e19b6a7c1ab3ea8fefc60352ace64a560b46cd (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'config/essentials/zsh/functions.zsh')
-rw-r--r-- | config/essentials/zsh/functions.zsh | 16 |
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'" +} |