.bash_profile

#68
Raw
Author
winny
Created
Sept. 11, 2020, 7:31 p.m.
Expires
Never
Size
753 bytes
Hits
179
Syntax
Bash
#
# ~/.bash_profile
#

export EDITOR="$HOME/bin/EDITOR"

export NPM_PACKAGES="$HOME/.npm-packages"
export NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"

path_append() {
    export PATH="$PATH:$1"
}

path_prefix() {
    export PATH="$1:$PATH"
}

export GOPATH="$HOME/gocode"
export GOROOT="$HOME/go"
export GOBIN="$HOME/gobin"
path_prefix "$NPM_PACKAGES/bin"
path_append "$HOME/.racket/latest/bin"
path_prefix "$GOBIN"
path_prefix "$GOPATH/bin:$GOROOT/bin"
path_prefix "$HOME/.cabal/bin"
path_prefix "$HOME/bin"
path_append "$HOME/local/bin"
path_prefix "$HOME/.cask/bin"
path_append "/sbin"
path_append "/usr/sbin"
path_append "/usr/local/sbin"
[[ -d "$HOME/.cargo" ]] && source "$HOME/.cargo/env"

[[ -f ~/.bashrc ]] && . ~/.bashrc