summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-15 21:24:12 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-15 21:24:12 -0400
commit25899a34fafe6d7ee0935bcf6d34d9cb173ac761 (patch)
tree50eb31553bf0ca4b41fed3eb0a9e144a8b2f4f1b
parent698e2f7c15a19337078d7d0ab07b8e41cb14400a (diff)
source aliasgen after running in zsh
-rwxr-xr-x.local/bin/aliasgen5
1 files changed, 4 insertions, 1 deletions
diff --git a/.local/bin/aliasgen b/.local/bin/aliasgen
index bd351df..9489fbc 100755
--- a/.local/bin/aliasgen
+++ b/.local/bin/aliasgen
@@ -11,4 +11,7 @@ echo "$raw" | sed "s/^/alias\ /;
s/\s*|\s*/=\"/;
s/^.*-*+-*=\"$//;
s/\s*|$/\"/" > $HOME/.cache/zsh-aliases
-
+case "$SHELL" in
+ *zsh) $HOME/.cache/zsh-aliases ;;
+ *) ;;
+esac