This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/shell/paths

28 lines
545 B
Plaintext
Raw Normal View History

2017-02-20 18:31:28 -06:00
#!/usr/bin/env bash
export GOPATH="$HOME/.go"
# PATH=$PATH:$APPENDED_PATH
2018-06-05 14:34:53 -05:00
export PATH=$PATH:"$GOPATH/bin"
export PATH=$PATH:"$DOTFILES_PATH/scripts/bin"
export PATH=$PATH:"$HOME/.cargo/bin"
2018-10-31 14:40:57 -05:00
if [ -d "$HOME/.local/bin" ]; then
export PATH=$PATH:"$HOME/.local/bin"
fi
if [ -d "$HOME/.bin" ]; then
2018-06-05 14:34:53 -05:00
export PATH=$PATH:"$HOME/.bin"
fi
2017-02-20 18:38:20 -06:00
if command -v ruby >/dev/null 2>&1; then
2018-06-05 14:34:53 -05:00
export PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
2017-02-20 18:38:20 -06:00
fi
2018-11-03 14:06:15 -05:00
export NOTES_PATH="$NICE_HOME/doc/notes"
_make_paths() {
mkdir -p "${NOTES_PATH}"
}
export -f _make_paths