summaryrefslogtreecommitdiff
path: root/zsh/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index c2fd984..d12b918 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -72,11 +72,14 @@ abbrev-alias x="clear; ls"
abbrev-alias t="ls --tree"
# cd aliases, from $ORGD_CDALIAS_PATH
+strip-comments "$ORGD_CDALIAS_PATH" | strip-blank > /tmp/orgd-cd-aliases
while read l ; do
a="cd$(echo $l | awk -F' ' '{print $1}')";
c="$(echo $l | awk -F' ' '{print $2}')"
alias $a="cd $c"
-done < $ORGD_CDALIAS_PATH
+done < /tmp/orgd-cd-aliases
+rm /tmp/orgd-cd-aliases
+
# vim / nvim
alias vim="nvim"