-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbashrc_local.hal
More file actions
39 lines (30 loc) · 1.18 KB
/
bashrc_local.hal
File metadata and controls
39 lines (30 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ~/.bashrc_local
# vim: ft=bash
# Set up powerline-shell prompt
# See https://github.com/b-ryan/powerline-shell
function _update_ps1() {
export PS1=$(powerline-shell $?)
}
# Uncomment the following line while upgrading powerline-shell
#command -v powerline-shell &>/dev/null &&
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# -----------------------------------------------------------------------------
# Homebrew setup
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
[[ -d "${HOMEBREW_PREFIX}/etc/bash_completion.d" ]] && for bc in "${HOMEBREW_PREFIX}"/etc/bash_completion.d/*; do source "${bc}"; done
# Set up z jumper
source "${HOMEBREW_PREFIX}/etc/profile.d/z.sh"
# Set up Go
export GOPATH="${HOME}/go"
export PATH="${PATH}:${GOPATH}/bin"
# Set up modular
export PATH="${PATH}:${HOME}/.modular/bin"
# Set up nvm
export NVM_DIR="${HOME}/.nvm"
[ -s "${NVM_DIR}/nvm.sh" ] && source "${NVM_DIR}/nvm.sh"
[ -s "${NVM_DIR}/bash_completion" ] && source "${NVM_DIR}/bash_completion"
# Load linux aliases
source ~/dotfiles/bash_aliases.linux
# -----------------------------------------------------------------------------