-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_aliases
executable file
·49 lines (36 loc) · 1.01 KB
/
_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
#!/bin/sh
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
[ -r ~/.dir_colors ] \
&& eval "$(dircolors -b ~/.dir_colors)"\
|| eval "$(dircolors -b)"
alias ls="ls -h --color=auto"
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias diff='colordiff -EZbwBt'
fi
[ -r $HOME/.lynx.lss ] && alias lynx="lynx -lss=$HOME/.lynx.lss"
# ls tweaks direcory contents
alias lsa='ls -lah'
alias l='ls -l'
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'
alias c="clear"
alias claer='clear'
# Super user
alias _='sudo'
alias afind='ack-grep -il'
alias ping='ping -c5'
alias asdfg="setxkbmap $PRAJJ_XKB_OPTS"
alias gg=git
alias userctl="systemctl --user"
if [ -r $HOME/.aliases.local ]; then
. $HOME/.aliases.local
fi