-
Notifications
You must be signed in to change notification settings - Fork 1
/
env.sh
105 lines (96 loc) · 3.52 KB
/
env.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
[[ -f "$HOME/.env-secret.sh" ]] && source $HOME/.env-secret.sh
test "$SSH_AUTH_SOCK" && ln -sf $SSH_AUTH_SOCK ~/.ssh/ssh_auth_sock
OS=$(uname)
if [[ "$OS" == "Darwin" ]]; then
[ -d /Development/go ] && export GOPATH=/Development/go
[ -d ~/Development/go ] && export GOPATH=~/Development/go
export BETA_TESTING=1
export COPYFILE_DISABLE=true
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export FASTLANE_HIDE_PLUGINS_TABLE=1
export FASTLANE_HIDE_TIMESTAMP=1
export FASTLANE_OPT_OUT_USAGE=1
export FASTLANE_SKIP_ACTION_SUMMARY=1
export FASTLANE_SKIP_UPDATE_CHECK=1
export LSOPTIONS='-G'
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export PATH="$GOPATH/bin:$PATH"
export PATH="$GO_HOME/bin:$PATH"
export PATH="$JAVA_HOME/bin:$PATH"
export PATH="$PATH:/usr/local/opt/go/libexec/bin"
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/flutter/bin:$PATH"
export PATH="/usr/local/google-cloud-sdk/bin/:$PATH"
export PATH="/usr/local/heroku/bin:$PATH"
export PATH="/usr/local/mysql/bin:$PATH"
export PATH="/usr/local/packer:$PATH"
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
export PATH="$HOME/Library/Android/sdk/tools:$PATH"
export PATH="$HOME/.rd/bin:$PATH"
export PATH="$HOME/bin:$PATH"
export PKG_CONFIG_PATH="/usr/local/opt/libressl/lib/pkgconfig"
elif [[ "$OS" == "Linux" ]]; then
export LSOPTIONS='--color=auto'
export SWIFT_ROOT=/opt/swift
export PATH=$SWIFT_ROOT/usr/bin:$PATH
elif [[ "$OS" == "FreeBSD" ]]; then
export LSOPTIONS='-G'
export LSCOLORS="Exfxcxdxbxegedabagacad"
fi
function ksdiff {
result=$(mktemp).png
compare $1 $2 $result
open $1
open $2
open $result
}
if [[ $TERM == "xterm-color" ]]; then
export TERM="xterm"
fi
unset LANG
unset LC_CTYPE
unset LSCOLORS
unset LC_ALL
export BAT_THEME=GitHub
export EDITOR=vim
export FASTLANE_HIDE_PLUGINS_TABLE=1
export FASTLANE_HIDE_TIMESTAMP=1
export FASTLANE_OPT_OUT_USAGE=1
export FASTLANE_SKIP_ACTION_SUMMARY=1
export FASTLANE_SKIP_UPDATE_CHECK=1
export GPG_TTY=$(tty)
export HISTCONTROL=ignoreboth
export HISTSIZE=100000
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
export LC_ALL="en_US.UTF-8"
export PAGER=less
export PATH=$HOME/bin:$PATH
export TERM=screen-256color
export TZ=Europe/Berlin
alias diff='diff -Nuarbw'
alias flushdns='sudo killall -HUP mDNSResponder; sudo killall mDNSResponderHelper; sudo dscacheutil -flushcache'
alias gti='git'
alias k=kubectl
alias kaj='jobs -l | awk '\''{print $2}'\'' | xargs kill -9'
alias kdd='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
alias l='ls $LSOPTIONS -l'
alias ll='ls $LSOPTIONS -lA'
alias ls='ls $LSOPTIONS'
alias mutt='TERM=vt100 mutt'
alias tmux="tmux -2"
alias v=velero
alias vbi='vim +BundleInstall +qall'
[[ -x /usr/libexec/path_helper ]] && eval "$(/usr/libexec/path_helper -s)"
[[ -x /opt/homebrew/bin/mise ]] && eval "$(/opt/homebrew/bin/mise activate zsh)"
[[ -x /opt/homebrew/bin/brew ]] && eval "$(/opt/homebrew/bin/brew shellenv)"
[[ -f /usr/local/google-cloud-sdk/completion.zsh.inc ]] && source /usr/local/google-cloud-sdk/completion.zsh.inc
[[ -f /usr/local/google-cloud-sdk/path.zsh.inc ]] && source /usr/local/google-cloud-sdk/path.zsh.inc
[[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh
[[ -f ~/.ios ]] && source ~/.ios
which bat >/dev/null && alias cat='bat'
which direnv >/dev/null && eval "$(direnv hook zsh)"
which kubectl >/dev/null && source <(kubectl completion zsh)
which velero >/dev/null && source <(velero completion zsh)
which rbenv >/dev/null && eval "$(rbenv init - zsh)"