-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbashrc_local.helix
115 lines (95 loc) · 3.58 KB
/
bashrc_local.helix
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# ~/.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
# -----------------------------------------------------------------------------
# Helix-specific aliases
alias code=code-insiders
alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'
alias today='mkcd ~/active/$(gdate +%Y/%m-%d)/'
alias caf='conda activate fastapi'
alias less='nvimpager'
# Playlists
alias lofi-loft="vlc.sh ~/active/music/lofi-loft/lofi-loft.m3u"
alias naxatras="vlc.sh ~/active/music/naxatras/naxatras.m3u"
alias causa-sui="vlc.sh ~/active/music/causa-sui/causa-sui.m3u"
alias hemi-sync="vlc.sh ~/Music/hemi-sync-30mins.m4a"
# Helix-specific directories
alias cd-wikipedia='cd ~/active/links/wikipedia/'
alias cd-awesome-links='cd ~/w/awesome-links/'
alias cd-desktop='cd ~/Desktop/active-workspace/'
alias cd-finetuning='cd ~/genai/tts-finetuning/'
alias cd-stb='cd ~/active/stb'
alias cd-zoo='cd ~/active/zoo'
alias cd-seeds='cd ~/active/seeds'
alias cd-chats='cd ~/active/chats'
alias cd-hub='cd ~/active/poc/hub'
alias cd-webstream='cd ~/active/webstream/'
alias cd-upwork='cd ~/active/upwork/'
alias cd-books='cd ~/active/books/'
alias cd-yum='cd ~/active/yum/'
# AWS stuff
alias sandbox-sso-login='aws sso login --profile sandbox-admin'
alias billing-sso-login='aws sso login --profile billing-admin'
alias infra-sso-login='aws sso login --profile prod-infra'
# Hugo stuff
alias cd-blog='cd ~/blogs/hugo'
alias cd-themes='cd ~/themes/hugo'
alias cd-videolog='cd ~/blogs/hugo/sites/videolog'
alias cd-blog-webstream='cd ~/blogs/hugo/vault/webstream'
alias cd-watchq='cd ~/blogs/hugo/vault/watchq'
# -----------------------------------------------------------------------------
#source ~/blogs/profile.sh
# Set up z jumper
source "/opt/homebrew/etc/profile.d/z.sh"
# 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}"
# STB: Load poc bash scripts
#source ~/active/poc/bashes/profile.sh
# STB: AWS stuff
source ~/security/aws/profile.sh
# STB: Location of PKI for the helix private CA
export EASYRSA_PKI="${HOME}/security/easy-rsa/pki"
# Setup mojo
if [ -d ~/.modular ]; then
export PATH="$PATH:/Users/luis/.modular/bin"
fi
# https://support.apple.com/kb/HT208050
#export BASH_SILENCE_DEPRECATION_WARNING=1
# -----------------------------------------------------------------------------
# >>> 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 <<<