-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbashrc_local.yappa
69 lines (57 loc) · 2.32 KB
/
bashrc_local.yappa
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# ~/.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
# -----------------------------------------------------------------------------
alias ls='ls --color -F'
# -----------------------------------------------------------------------------
# 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="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:";
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
# 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
# -----------------------------------------------------------------------------
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/luis/miniforge3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/luis/miniforge3/etc/profile.d/conda.sh" ]; then
. "/home/luis/miniforge3/etc/profile.d/conda.sh"
else
export PATH="/home/luis/miniforge3/bin:$PATH"
fi
fi
unset __conda_setup
if [ -f "/home/luis/miniforge3/etc/profile.d/mamba.sh" ]; then
. "/home/luis/miniforge3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<