-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
34 lines (26 loc) · 920 Bytes
/
.bashrc
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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
# PS1 magic partly from http://www.ibm.com/developerworks/linux/library/l-tip-prompt/
# used to have ${HOME} instead of /local/home/${USER}
export PS1="[7m]0;\${PWD#*/home/${USER}/}\${?#0}\n${HOSTNAME%.example.com}:\${PWD#*/home/${USER}/}/\[[m\]"
alias ls='ls --color=auto --human-readable' #--classify
alias watch='watch --differences --interval=1 --no-title'
alias rsync='rsync --human-readable --progress'
alias du='du --human-readable'
alias df='df --human-readable'
alias cp='cp --interactive'
alias mv='mv --interactive'
alias rm='rm --interactive'
shopt -s cdspell
export PAGER="less"
export EDITOR=emacs
export GREP_OPTIONS='--color=auto'
export HISTIGNORE='&:[bf]g' # :ls
export LESS='FSRX'
export MAKEFLAGS='-j8'
export PYTHONSTARTUP=~/.pythonrc.py
alias emacs='emacs -nw'