-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbashrc_local.dna
64 lines (53 loc) · 1.85 KB
/
bashrc_local.dna
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
# ~/.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
# -----------------------------------------------------------------------------
# dna-specific aliases
alias code=code-insiders
# -----------------------------------------------------------------------------
# Set up z jumper
source "/usr/local/etc/profile.d/z.sh"
# Set up nvm
export NVM_DIR="${HOME}/.nvm"
if [ -s "/usr/local/opt/nvm/nvm.sh" ]; then
source "/usr/local/opt/nvm/nvm.sh" # This loads nvm
fi
if [ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ]; then
source "/usr/local/opt/nvm/etc/bash_completion.d/nvm"
fi
# Set up go
# Alternative: go env -w GOBIN=$HOME/bin
export PATH="${PATH}:${HOME}/go/bin"
# Set up docker
#export PATH="${HOME}/.docker/bin:${PATH}"
#export DOCKER_BUILDKIT=1
#export COMPOSE_DOCKER_CLI_BUILD=1
# Set up workspaces
#export DASH_WS="${HOME}/dash-ws"
# -----------------------------------------------------------------------------
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/luis/miniforge3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/luis/miniforge3/etc/profile.d/conda.sh" ]; then
. "/Users/luis/miniforge3/etc/profile.d/conda.sh"
else
export PATH="/Users/luis/miniforge3/bin:$PATH"
fi
fi
unset __conda_setup
if [ -f "/Users/luis/miniforge3/etc/profile.d/mamba.sh" ]; then
. "/Users/luis/miniforge3/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<