aliases.zsh 647 Bytes
Newer Older
To1ne's avatar
To1ne committed
1
# Push and pop directories on directory stack
2
3
alias pu='pushd'
alias po='popd'
4

To1ne's avatar
To1ne committed
5
# Basic directory operations
6
alias ...='cd ../..'
7
alias -- -='cd -'
8

To1ne's avatar
To1ne committed
9
# Super user
10
alias _='sudo'
11
alias please='sudo'
12

Geoff Garside's avatar
Geoff Garside committed
13
#alias g='grep -in'
14

To1ne's avatar
To1ne committed
15
# Show history
16
17
18
19
20
21
22
23
24
25
26
27
if [ "$HIST_STAMPS" = "mm/dd/yyyy" ]
then
    alias history='fc -fl 1'
elif [ "$HIST_STAMPS" = "dd.mm.yyyy" ]
then
    alias history='fc -El 1'
elif [ "$HIST_STAMPS" = "yyyy-mm-dd" ]
then
    alias history='fc -il 1'
else
    alias history='fc -l 1'
fi
To1ne's avatar
To1ne committed
28
# List direcory contents
29
alias lsa='ls -lah'
Sébastien M-B's avatar
Sébastien M-B committed
30
alias l='ls -la'
31
alias ll='ls -l'
Andrew Hodges's avatar
Aliases    
Andrew Hodges committed
32
alias la='ls -lA'
33
alias sl=ls # often screw this up
34

Gerhard Lazu's avatar
Gerhard Lazu committed
35
alias afind='ack-grep -il'
36