-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbashrc_local.yappa
More file actions
50 lines (40 loc) · 1.68 KB
/
Copy pathbashrc_local.yappa
File metadata and controls
50 lines (40 loc) · 1.68 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
40
41
42
43
44
45
46
47
48
49
50
# ~/.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 (from `/home/linuxbrew/.linuxbrew/bin/brew shellenv`)
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew";
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar";
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew";
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}";
export MANPATH="${MANPATH}:/home/linuxbrew/.linuxbrew/share/man"
export INFOPATH="${INFOPATH}:/home/linuxbrew/.linuxbrew/share/info"
# bash completions from brew commands
if [ -d "${HOMEBREW_PREFIX}/etc/bash_completion.d" ]; then
for bcfile in "${HOMEBREW_PREFIX}"/etc/bash_completion.d/* ; do
. ${bcfile}
done
fi
# -----------------------------------------------------------------------------
# Set up z jumper
source "${HOMEBREW_PREFIX}/etc/profile.d/z.sh"
# Set up nvm
export NVM_DIR="${HOME}/.nvm"
if [ -s "${HOMEBREW_PREFIX}/opt/nvm/nvm.sh" ]; then
source "${HOMEBREW_PREFIX}/opt/nvm/nvm.sh"
fi
if [ -s "${HOMEBREW_PREFIX}/opt/nvm/etc/bash_completion.d/nvm" ]; then
source "${HOMEBREW_PREFIX}/opt/nvm/etc/bash_completion.d/nvm"
fi
# Load linux aliases
source ~/dotfiles/bash_aliases.linux
# -----------------------------------------------------------------------------