-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
36 lines (28 loc) · 846 Bytes
/
bash_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
#Misc...
alias vi='vim'
alias l='ls'
alias ll='ls -lh'
#Fix solarized scheme for tmux
alias tmux="TERM=screen-256color-bce tmux"
#default to human readable
alias du='du -h'
alias df='df -h'
#automatic resume download instead of starting over
alias wget='wget -c'
#resume tmux session if it already exists or start a new one
alias tm="tmux a -dt main || tmux new -s main"
######################
### COLOR SUPPORT ###
######################
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --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'
fi
if [ -x /usr/bin/colordiff ]; then
alias diff='colordiff'
fi