From 9b4dfb5106b1b3c704607bea426b59da454eba9e Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Sat, 22 Sep 2018 23:22:38 +0200 Subject: [PATCH] zsh: aliases.zsh: add global aliases for directory traversal As of now you have to either use '...' or 'cd ../..' in order to move up two directories. In order to also use 'cd ...' global aliases are required which also allow expansion inside of commands. --- zsh/aliases.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 252f7b7..14336be 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -7,6 +7,9 @@ alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' +alias -g ...='../..' +alias -g ....='../../..' + # ===== directory information alias ll='ls -l' alias la='ls -la'