summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-11 20:14:49 -0600
committerzachir <zachir@librem.one>2023-02-11 20:14:49 -0600
commit1d0738c2299190beca4194e61245d612b9140724 (patch)
treec07b549e4131117cf878f69e1310e6ede17981ec /zsh
parent3f7c0df91a9cb7f5583964e559b5cadc210aac9e (diff)
fix e alias for zsh
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 5442bc9..3330042 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -18,6 +18,12 @@ if [ -f "$XDG_CONFIG_HOME"/sh/functions ]; then
source "$XDG_CONFIG_HOME"/sh/functions
fi
+if [ -n "$ZDOTDIR"/.zshrc -a -f "$ZDOTDIR"/.zshrc ]; then
+ alias e='source "$ZDOTDIR"/.zshrc'
+elif [ -f "$HOME"/.zshrc ]; then
+ alias e='source ~/.zshrc'
+fi
+
bindkey "^?" backward-delete-char
# bindkey -v