Nethence Newdoc Olddoc Lab Your IP BBDock  

Tweak your environment

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

#ubuntu
cp -pi /etc/environment /etc/environment.dist
cat > /etc/environment <<-EOF
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:\$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

#common depends on $config
cat >> $config <<-EOF
export TERM=xterm-256color
export EDITOR=vim
export LANG=en_US.UTF-8
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'
EOF
source $config
unset config

References


Home | GitHub | Donate | Contact