diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-23 14:12:17 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-06-23 14:12:17 +0200 |
commit | 8986d060f2f308ba768758ef9c3077f00f3d6b2a (patch) | |
tree | 1dcbbd479f498693de0180ecae85bf532d74a8d1 /config/essentials/shell/functions.sh | |
parent | d466dcc80e77463fa035fc85ced0c253e38cbac2 (diff) |
checkpoint
Diffstat (limited to 'config/essentials/shell/functions.sh')
-rw-r--r-- | config/essentials/shell/functions.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 27eb33e..18d75ec 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -70,7 +70,10 @@ rln() { ln -s "$(readlink -f "$1")" "$2"; } getgit() { git clone git@db:"$1"; } esc() { eval "$EDITOR '$(which $1)'"; } -compdef esc="which" +if [ $SHELL = "/bin/zsh" ] +then + compdef esc="which" +fi delfile() { curl -s "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"; } upfile() { curl -s -F "file=@\"$1\"" "${2:-https://0x0.st}"; } |