sh 安装shskwmt的bashrc

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 安装shskwmt的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

以上是关于sh 安装shskwmt的bashrc的主要内容,如果未能解决你的问题,请参考以下文章

source ~/.bashrc virtualenvwrapper 出错

sh 的.bashrc

sh 的.bashrc

sh 的.bashrc

sh 的.bashrc

sh 的.bashrc