directories.zsh 629 Bytes
Newer Older
1
# Changing/making/removing directory
2
3
setopt auto_pushd
setopt pushd_ignore_dups
Toon Claes's avatar
Toon Claes committed
4
setopt pushdminus
5

6
7
8
9
alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'
alias -g ......='../../../../..'
10
11

alias 1='cd -'
Toon Claes's avatar
Toon Claes committed
12
13
14
15
16
17
18
19
alias 2='cd -2'
alias 3='cd -3'
alias 4='cd -4'
alias 5='cd -5'
alias 6='cd -6'
alias 7='cd -7'
alias 8='cd -8'
alias 9='cd -9'
20
21
22

alias md='mkdir -p'
alias rd=rmdir
23
alias d='dirs -v | head -10'
24

LFDM's avatar
LFDM committed
25
# List directory contents
26
27
28
29
30
31
32
33
34
alias lsa='ls -lah'
alias l='ls -la'
alias ll='ls -l'
alias la='ls -lA'
alias sl=ls # often screw this up

# Push and pop directories on directory stack
alias pu='pushd'
alias po='popd'