summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-06-18 10:51:12 +0200
committerjohannst <stoelp@eit.uni-kl.de>2018-06-18 10:51:12 +0200
commitb9ecf2e4621186b7e1daca9176f51d979d0e2866 (patch)
tree0b0c5b57df91ac709af5a2396ed638b1a6c5620c
parent41190507f28ee71d8907a4f9a0fc9bdf56a85a7f (diff)
downloaddotfiles-b9ecf2e4621186b7e1daca9176f51d979d0e2866.tar.gz
dotfiles-b9ecf2e4621186b7e1daca9176f51d979d0e2866.zip
added new alias to zsh for dir stack switching
-rw-r--r--zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index 0e3d81c..829ffa2 100644
--- a/zshrc
+++ b/zshrc
@@ -86,6 +86,10 @@ bindkey -M viins "jj" vi-cmd-mode
DIRSTACKSIZE=8
setopt autopushd pushdminus pushdsilent pushdtohome
alias dh='dirs -v'
+alias d='_goDir'
+function _goDir() {
+ cd -$1
+}
# Prompt