-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
92 lines (77 loc) · 2.24 KB
/
.profile
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
alias c="clear"
alias vim='nvim'
alias ls='ls --color=auto'
# alias k='kubectl'
# alias h='helm'
export EDITOR="nvim"
export SHELL="zsh"
export GOPATH="$HOME/.go"
export PATH="$GOPATH/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
# export PATH="$PATH:/opt/android-sdk/platform-tools"
# export PATH="$PATH:/opt/android-sdk/build-tools"
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:/usr/local/sbin"
export PATH="$PATH:$HOME/nbin"
# export KUBECONFIG="$HOME/.kube/config"
platform='unknown'
unamestr=$(uname)
if [[ "$unamestr" == 'Linux' ]]; then
platform='linux'
elif [[ "$unamestr" == 'Darwin' ]]; then
platform='Darwin'
fi
# if [[ $platform == 'linux' ]]; then
# alias ls='ls --color=auto'
# elif [[ $platform == 'freebsd' ]]; then
# alias ls='ls -G'
# fi
if [[ $platform == 'linux' ]]; then
#eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
export PATH="/home/$USER/homebrew/bin:$PATH"
mkdir -p ~/global
export PATH=~/global:$PATH
export PATH=~/global/npm/node-v20.11.0-linux-x64/bin:$PATH
fi
if [[ $platform == 'Darwin' ]]; then
export PATH="/opt/homebrew/bin:$PATH"
export PATH="~/homebrew/bin:$PATH"
fi
DO_VALAR() {
pass show tokens/digitalocean/valar
}
DO_NANOTIFY() {
pass show tokens/digitalocean/nanotify
}
DO_RAILPAY() {
pass show tokens/digitalocean/railpay
}
DO_POLLEN() {
pass show tokens/digitalocean/pollen
}
docker_rm_stopped() {
docker rm $(docker ps -a -q)
}
if which jenv > /dev/null; then eval "$(jenv init -)"; fi
if ! type open > /dev/null ; then
alias open=xdg-open
fi
# Start the gpg-agent if not already running
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
gpg-connect-agent /bye >/dev/null 2>&1
fi
alias gpg-unlock="gpg-connect-agent updatestartuptty /bye"
[ -s "/home/elliott/.svm/svm.sh" ] && source "/home/elliott/.svm/svm.sh"
export RIPGREP_CONFIG_PATH="$HOME/.ripgreprc"
alias protonmail-bridge='PASSWORD_STORE_DIR="$HOME/.local/share/pass" protonmail-bridge'
if [ -f /opt/asdf-vm/asdf.sh ]; then
export ASDF_DIR=/opt/asdf-vm
export ASDF_CONFIG_FILE=$HOME/asdf/asdfrc
export ASDF_DATA_DIR=$HOME/asdf
source $ASDF_DIR/asdf.sh
# Insert autocompletion setup for your shell here.
fi
# if [[ $platform == 'linux' ]]; then
#if [[ $platform == 'linux' ]]; then
#. "$HOME/.cargo/env"
#fi