-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbashrc_local.helix
More file actions
65 lines (49 loc) · 1.88 KB
/
bashrc_local.helix
File metadata and controls
65 lines (49 loc) · 1.88 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# ~/.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
# -----------------------------------------------------------------------------
# Set up z jumper
# source "/opt/homebrew/etc/profile.d/z.sh"
# Use zoxide instead of z jumper
eval "$(zoxide init bash)"
# Setup nvm
export NVM_DIR="${HOME}/.nvm"
if [ -s "/opt/homebrew/opt/nvm/nvm.sh" ]; then
source "/opt/homebrew/opt/nvm/nvm.sh"
fi
if [ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ]; then
source "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
fi
# Setup java
export PATH="/opt/homebrew/opt/openjdk/bin:${PATH}"
# Setup modules
#[ -d /opt/homebrew/opt/modules/init ] && source /opt/homebrew/opt/modules/init/bash
#export MODULEPATH="${HOME}/modulefiles:${MODULEPATH}"
# heroku autocomplete setup
HEROKU_AC_BASH_SETUP_PATH=/Users/luis/Library/Caches/heroku/autocomplete/bash_setup && test -f $HEROKU_AC_BASH_SETUP_PATH && source $HEROKU_AC_BASH_SETUP_PATH;
# Setup GOBIN
export PATH="${PATH}:${HOME}/go/bin"
# Setup mojo
if [ -d ~/.modular ]; then
export PATH="$PATH:/Users/luis/.modular/bin"
fi
# Added by Antigravity
export PATH="/Users/luis/.antigravity/antigravity/bin:$PATH"
# Added by kiro to ~/.bashrc
[[ "$TERM_PROGRAM" == "kiro" ]] && . "$(kiro --locate-shell-integration-path bash)"
# https://support.apple.com/kb/HT208050
#export BASH_SILENCE_DEPRECATION_WARNING=1
# Load macOS aliases
source ~/dotfiles/bash_aliases.macos
# Load helix profile
[ -d ~/config ] && source ~/config/profiles.d/helix.sh
# -----------------------------------------------------------------------------