shskwmt
1/21/2017 - 4:51 PM

Install shskwmt's bashrc

Install shskwmt's bashrc

# init bash_profile
if [ ! -f ~/.bash_profile ]; then
  cat <<'EOT' > ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
EOT
fi

# install bashrc.d
if [ ! -d ~/.bashrc.d ]; then
  git clone https://github.com/shskwmt/bashrc.d.git ~/.bashrc.d
  if [ -f ~/.bashrc ]; then
    rm ~/.bashrc
  fi
  ln -s ~/.bashrc.d/bashrc ~/.bashrc
  source ~/.bashrc
fi