-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_alias
36 lines (32 loc) · 970 Bytes
/
.bash_alias
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
# crontab stuff
alias crontab="VIM_CRONTAB=true crontab"
# alias stuff
alias sauce='source ~/.bashrc'
alias ll='ls -lahp'
alias ls='ls -p'
alias ..='cd ../'
alias ...='cd ../../'
alias cls='clear; ls'
alias cs='cd'
alias h='history'
alias back='cd $OLDPWD'
alias grep='grep --color=auto'
alias tree='tree -Ch'
alias rm='rm -i'
alias lhead='ll -t | head'
alias sendup='echo $(whoami)@$(hostname):$(pwd)'
alias home='cd /home/$USER/'
# Tailoring Less
# from http://tldp.org/LDP/abs/html/sample-bashrc.html
alias more='less'
export PAGER=less
export LESSCHARSET='latin1'
export LESS='-i -w -z-4 -g -e -M -X -F -R -P%t?f%f :stdin .?pb%pb\%:?lbLine %lb:?bbByte %bb:-...'
# LESS man page colors (makes Man pages more readable).
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'