Nethence Newdoc Olddoc Lab Your IP BBDock  

Tweak your environment

Add $HOME/bin/ (careful with the escape) to your PATH,

#ubuntu
cat /etc/environment
mv -i /etc/environment /etc/environment.dist
cat > /etc/environment <<-EOF
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:\$HOME/bin"
EOF
source /etc/environment

Provide handy command aliases,

#centos
cp -pi /etc/bashrc /etc/bashrc.dist
config=/etc/bashrc

#ubuntu
cp -pi /etc/bash.bashrc /etc/bash.bashrc.dist
config=/etc/bash.bashrc

cat >> $config <<-EOF
alias ll='ls -alhF'
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias runq='postfix flush'
alias netstata='netstat -antupe --inet --inet6'
alias push='git nc && git push'
alias stat='git diff --stat --cached origin/master'
EOF
source $config
unset config

#export TERM=xterm-256color
#export EDITOR=vim
#export LANG=en_US.UTF-8

Ref. http://www.robmeerman.co.uk/unix/256colours


Home | GitHub | Docker Hub | Donate | Contact