-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
62 lines (48 loc) · 1.73 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
#!/bin/bash
if [[ $OSTYPE == "darwin"* ]]; then
export PATH="$PATH:/Applications/Google Chrome.app/Contents/MacOS"
eval "$(/opt/homebrew/bin/brew shellenv)"
export GPG_TTY=$(tty) # required for macos gpg: https://gist.github.com/repodevs/a18c7bb42b2ab293155aca889d447f1b
if [[ -z "$SSH_AUTH_SOCK" ]]; then
eval $(ssh-agent)
fi
else
if command -v xmodmap 1>/dev/null 2>&1 && [[ ! -z $DISPLAY ]] ; then
xmodmap ~/.xmodmap
fi
fi
if [[ "$WSL_DISTRO_NAME" ]]; then
export BROWSER="wslview"
export WINHOME="/mnt/c/Users/brendan"
export GPG_TTY=$(tty)
if [[ -z "$SSH_AUTH_SOCK" ]]; then
eval $(ssh-agent)
fi
fi
#gpg-connect-agent updatestartuptty /bye >/dev/null
#unset SSH_AGENT_PID
#if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
# export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
#fi
export WD=$HOME/git/mx51
export WORKDIR=$HOME/git/mx51
export DOTS=$HOME/git/dotfiles
export EDITOR=nvim
export VISUAL=nvim
export PAGER="less -S"
# store some custom applications
export PATH="$PATH:$HOME/bin:$HOME/.local/bin"
# golang
export GOPATH="$HOME/go"
export PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"
export GOPRIVATE="github.com/mx51/*"
# rust
export PATH="$PATH:$HOME/.cargo/bin"
export AWS_REGION="ap-southeast-2"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/opt/google-cloud-sdk/path.zsh.inc' ]; then source '/opt/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/opt/google-cloud-sdk/completion.zsh.inc' ]; then source '/opt/google-cloud-sdk/completion.zsh.inc'; fi
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm
. "$HOME/.cargo/env"