dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit c315017dea33cd9d9890bce2ff7a5ca97deafce4
parent 8c165f42006ac5b67365bfe406d73d0d5656e2bc
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 29 Dec 2017 13:30:50 -0500

Init /home/djmoch/.go only if go installed

Diffstat:
M.bashrc | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -7,7 +7,6 @@ then fi export EDITOR=vim -export GOPATH=$HOME/.go # Turn on ls colors if command -v dircolors > /dev/null 2>&1 @@ -55,9 +54,13 @@ then export PATH=$PATH:$HOME/.cargo/bin fi -if [[ -d $HOME/.go/bin ]] +if command -v go > /dev/null 2>&1 then - export PATH=$PATH:$HOME/.go/bin + export GOPATH=$HOME/.go + if [[ -d $HOME/.go/bin ]] + then + export PATH=$PATH:$HOME/.go/bin + fi fi if [[ -d $HOME/.local/bin ]]