diff options
author | Ashley Valent <avalent@atlassian.com> | 2015-02-11 11:22:15 +1100 |
---|---|---|
committer | Ashley Valent <avalent@atlassian.com> | 2015-02-11 11:22:15 +1100 |
commit | 3b6a695b60d81691ab8e31197fc8e0444df0e394 (patch) | |
tree | 84529e1bc0a54cdd9471e53c597e913797c04014 /lib/directories.zsh | |
parent | 3ba10ad0a2ed85c26e096126a7899a401cf8f9e7 (diff) | |
parent | ef7e53a78d0e4196c2d1e6e5b268209759d51753 (diff) | |
download | zsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.tar.gz zsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.tar.bz2 zsh-3b6a695b60d81691ab8e31197fc8e0444df0e394.zip |
Merge branch 'master' of github.com:avalent/oh-my-zsh
Diffstat (limited to 'lib/directories.zsh')
-rw-r--r-- | lib/directories.zsh | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/lib/directories.zsh b/lib/directories.zsh index 02743e0c7..1a9698544 100644 --- a/lib/directories.zsh +++ b/lib/directories.zsh @@ -3,12 +3,10 @@ setopt auto_pushd setopt pushd_ignore_dups setopt pushdminus -alias ..='cd ..' -alias cd..='cd ..' -alias cd...='cd ../..' -alias cd....='cd ../../..' -alias cd.....='cd ../../../..' -alias cd/='cd /' +alias -g ...='../..' +alias -g ....='../../..' +alias -g .....='../../../..' +alias -g ......='../../../../..' alias 1='cd -' alias 2='cd -2' @@ -20,23 +18,16 @@ alias 7='cd -7' alias 8='cd -8' alias 9='cd -9' -cd () { - if [[ "x$*" == "x..." ]]; then - cd ../.. - elif [[ "x$*" == "x...." ]]; then - cd ../../.. - elif [[ "x$*" == "x....." ]]; then - cd ../../../.. - elif [[ "x$*" == "x......" ]]; then - cd ../../../../.. - elif [ -d ~/.autoenv ]; then - source ~/.autoenv/activate.sh - autoenv_cd "$@" - else - builtin cd "$@" - fi -} - alias md='mkdir -p' alias rd=rmdir alias d='dirs -v | head -10' + +# List directory contents +alias lsa='ls -lah' +alias l='ls -la' +alias ll='ls -l' +alias la='ls -lA' + +# Push and pop directories on directory stack +alias pu='pushd' +alias po='popd' |