-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc.sh
131 lines (104 loc) · 3.61 KB
/
bashrc.sh
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Do not add things to ~/.bashrc, which is not version controlled.
# Instead add things to this file, which is.
# echo "Starting repo bashrc"
# Have git and others use emacs for an editor, not vi.
# crontab for one will break if you try setting this to VS Code.
export VISUAL="emacs -nw"
export EDITOR="$VISUAL"
# Homebrew, on Mac OS only
if [ -e /opt/homebrew/bin/brew ]; then
eval $(/opt/homebrew/bin/brew shellenv)
fi
# Python
# PATH=~/Library/Python/2.7/bin:$PATH
# Cursor
if [ -e /home/e/bin/cursor/cursor ]; then
PATH="/home/e/bin/cursor:$PATH"
fi
# Rust
. "$HOME/.cargo/env"
# Pyenv, for installing and running multiple Python versions
if [ -d /home/e/.pyenv ]; then
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
# Android
# Keep the gradle version here up to date with the latest that Android Studio downloads.
# PATH=/Applications/Android\ Studio.app/Contents/gradle/gradle-3.2/bin:$PATH
# PATH=~/Android/sdk/platform-tools:$PATH
# export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
# App Engine
# PATH=~/r/appengine-java-sdk-1.9.51/bin:$PATH
# Fuchsia
# PATH=~/r/zircon-buildtools/mac-x64/qemu/bin:$PATH
# PATH=~/r/fuchsia/.jiri_root/bin:$PATH
# source ~/r/fuchsia/scripts/fx-env.sh
# if [ ! -d ~/r/fuchsia/.ccache ]; then
# mkdir ~/r/fuchsia/.ccache
# fi
# export CCACHE_DIR=~/r/fuchsia/.ccache
# Google Cloud SDK
# if [ -f /home/e/r/p/google-cloud-sdk/path.bash.inc ]; then
# source '/home/e/r/p/google-cloud-sdk/path.bash.inc'
# fi
# if [ -f /home/e/r/p/google-cloud-sdk/completion.bash.inc ]; then
# source '/home/e/r/p/google-cloud-sdk/completion.bash.inc'
# fi
# PATH=/usr/local/bin/make:$PATH
# Solana
# PATH="/home/e/.local/share/solana/install/active_release/bin:$PATH"
# Aptos
# export PATH="/home/e/.local/bin:$PATH"
# Node.js. Fix 'FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory'
export NODE_OPTIONS=--max_old_space_size=4096
# Note: you cannot use "which nvm" to see if nvm is available. It's a function, not a binary.
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export PATH=/home/e/.meteor:$PATH
# pnpm
export PNPM_HOME="/home/e/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
export PATH="$PATH:/home/e/.foundry/bin"
# Foundry
export PATH="$PATH:/Users/e/.foundry/bin"
# Cairo & Starknet
export CAIRO_ROOT="$HOME/.cairo"
command -v cairo-compile >/dev/null || export PATH="$CAIRO_ROOT/target/release:$PATH"
if [ -f /home/e/.starkli/env ]; then
source "/home/e/.starkli/env"
fi
# Serial comms with Rock 5B. See https://docs.radxa.com/en/general-tutorial/serial
# alias minicom='minicom -w -t xterm -l -R UTF-8'
# Aliases
alias ls='ls -lah'
alias emacs='emacs -nw'
trash() {
mv "$1" "/home/e/.local/share/Trash/files"
}
export PS1="\$"
# Or just put things in /usr/local/bin
# No longer required because ~/.profile does this.
# export PATH="/home/e/bin:$PATH"
# Autocompletion for the Stripe CLI
if [ -f /home/e/.stripe/stripe-completion.bash ]; then
source /home/e/.stripe/stripe-completion.bash
fi
# Autocompletion for k8s
# if ! command source <(kubectl completion bash) &> /dev/null
# then
# echo "no k8s"
# fi
# Direnv, used by the Worldcoin Orb software repo
# Added by Nix installer
if [ -e /home/e/.nix-profile/etc/profile.d/nix.sh ]; then
. /home/e/.nix-profile/etc/profile.d/nix.sh;
eval "$(direnv hook bash)"
fi
# echo "Finished repo bashrc"