BlueDrink9 / env

Dotfiles and install script
6 stars 1 forks source link

Add grep clause before path echo to avoid duplication. #30

Closed BlueDrink9 closed 6 years ago

BlueDrink9 commented 6 years ago

grep -q -F 'export PATH=/opt/anaconda/bin:$PATH' ~/.bashrc || echo 'export PATH=/opt/anaconda/bin:$PATH' >> ~/.bashrc