Common bashrc settings
mouse 290 · person cloud · link
Last update
2017-11-09
2017
11-09
« — »
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PS1="\[\033[0;36m\]\t\[\033[01;34m\][\w]\[\033[00m\]\n\[\033[01;32m\]\u@\h\[\033[00m\]\$ "
[ `whoami` = "root" ] && PS1="\[\033[01;34m\][\w]\[\033[00m\]\n\[\033[01;31m\]\u\[\033[00m\]# "
PATH=".:$HOME/bin:/opt/bin:$PATH"
EDITOR=/bin/nano
CONCURRENCY_LEVEL=`grep processor /proc/cpuinfo|wc -l`
HISTSIZE=10000

export PS1  PATH  EDITOR CONCURRENCY_LEVEL  HISTSIZE

# --- aliases ------------------------------------------
alias d='clear; ls -lhX --color'
alias md=mkdir
alias cls=clear
alias cd..='cd ..'
alias rm='rm -i'
alias x=exit
alias dum='du -h --max-depth=1'
alias dumm='du -h --max-depth=1|grep M'
alias df='df -h'
alias mc='. /usr/lib/mc/mc-wrapper.sh'
alias see=geeqie
alias Grep=grep
alias Less=less
alias java='java -server'