From 8986d060f2f308ba768758ef9c3077f00f3d6b2a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 23 Jun 2024 14:12:17 +0200 Subject: checkpoint --- config/essentials/shell/functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/essentials/shell/functions.sh') 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}"; } -- cgit v1.2.3