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/apps/shell/bash/paths

35 lines
736 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/bin"
export PATH=$PATH:"$EDFP/bin"
export PATH=$PATH:"$HOME/.bin"
2018-06-05 14:34:53 -05:00
export PATH=$PATH:"$HOME/.cargo/bin"
2019-03-13 07:36:53 -05:00
export PATH=$PATH:"$HOME/.yarn/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
2019-07-24 11:23:18 -05:00
if command -v python >/dev/null 2>&1; then
export PATH="$(python -m site --user-base)/bin:$PATH"
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