From b9ecf2e4621186b7e1daca9176f51d979d0e2866 Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 18 Jun 2018 10:51:12 +0200 Subject: added new alias to zsh for dir stack switching --- zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zshrc') 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 -- cgit v1.2.3