-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_aliases
50 lines (44 loc) · 969 Bytes
/
_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
alias keyon="ssh-add -t 12h"
alias keyoff='ssh-add -D'
alias keylist='ssh-add -l'
alias lock='xscreensaver-command -lock'
alias asdf='setxkbmap dvorak'
alias aoeu='setxkbmap us'
alias gitk='gitk &'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ls="ls -F --color"
alias la="ls -A"
alias ll="ls -hl"
alias lla="ll -A"
function l. {
local olddir oldold
olddir=${PWD}
oldold=${OLDPWD}
if [[ -n "${1}" ]]; then
cd "${1}"
fi
ls -d .*
if [[ -n "${1}" ]]; then
cd "${olddir}"
export OLDPWD="${oldold}"
fi
}
function ll. {
local olddir oldold
olddir=${PWD}
oldold=${OLDPWD}
if [[ -n "${1}" ]]; then
cd "${1}"
fi
ls -dhl .*
if [[ -n "${1}" ]]; then
cd "${olddir}"
export OLDPWD="${oldold}"
fi
}
# disk usage with human sizes and minimal depth
alias du1='du -h --max-depth=1'
alias fn='find . -name'
alias hi='history | tail -20'