-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
46 lines (39 loc) · 1.36 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
#!/usr/bin/env bash
case "$(uname -s)" in
Linux*) machine=linux ;;
Darwin*) machine=mac ;;
CYGWIN*) machine=cygwin ;;
MINGW*) machine=mingw ;;
*) machine="UNKNOWN:${unameOut}" ;;
esac
export EDITOR="emacsclient"
export GOPATH=~/code/go
export GONOSUMDB=github.com/NerdWallet
export GPG_KEY=0x22B8564124FA9655
export GTK_IM_MODULE="ibus"
export PASSWORD_STORE_DIR=~/Sync/pass
export PATH=~/.local/bin:~/.emacs.d/bin:~/.cargo/bin:$GOPATH/bin:$PATH
export PGP_KEY=$GPG_KEY
export QT_IM_MODULE="ibus"
export XMODIFIERS="@im=ibus"
if [ "$machine" = "mac" ]; then
export GOROOT="$(brew --prefix go)/libexec"
fi
#if ( which gpgconf && which gpg-agent ) >/dev/null; then
# declare SSH_AUTH_SOCK
# SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
# if [ $? -eq 0 ]; then
# export SSH_AUTH_SOCK
# gpgconf --launch gpg-agent
# fi
#fi
test -f "$HOME/.sdkman/bin/sdkman-init.sh" && source "$HOME/.sdkman/bin/sdkman-init.sh"
test -f "$HOME/.cargo/env" && source "$HOME/.cargo/env" && export PATH="$PATH:`dirname $(rustup which rustc)`"
gcloud_sdk="/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/"
test -f "$gcloud_sdk/path.bash.inc" && source "$gcloud_sdk/path.bash.inc"
test -f "$gcloud_sdk/completion.bash.inc" && source "$gcloud_sdk/completion.bash.inc"
if echo "$0" | grep -q bash >/dev/null; then
if [ -r ~/.bashrc ]; then
. ~/.bashrc
fi
fi