-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
72 lines (53 loc) · 2.66 KB
/
zshrc
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
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="my-custom-theme"
[[ -x /opt/homebrew/bin/brew ]] && eval $(/opt/homebrew/bin/brew shellenv)
CASE_SENSITIVE="true"
DISABLE_AUTO_TITLE="true"
DISABLE_CORRECTION="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
ZSH_TMUX_AUTOSTART="true"
ZSH_TMUX_AUTOCONNECT="false"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
# Custom bgnotify message
function bgnotify_formatted {
elapsed="$(( $3 % 60 ))s"
(( $3 >= 60 )) && elapsed="$((( $3 % 3600) / 60 ))m $elapsed"
(( $3 >= 3600 )) && elapsed="$(( $3 / 3600 ))h $elapsed"
[ $1 -eq 0 ] && _custom_bgnotify "#win (took $elapsed)" "$2" || _custom_bgnotify "#fail (took $elapsed)" "$2"
}
function _custom_bgnotify {
terminal-notifier -message "$2" -title "$1" >/dev/null
}
# Load extensions
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(themes tmux command-not-found colorize docker docker-compose brew mvn npm aws bgnotify)
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
ZSH_DISABLE_COMPFIX=true
# add suport for color in terminal
export TERM="xterm-256color"
source $ZSH/oh-my-zsh.sh
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
autoload -U +X bashcompinit && bashcompinit
[ -f "/Users/rodrigo.lazoti//.ghcup/env" ] && source "/Users/rodrigo.lazoti//.ghcup/env" # ghcup-env
[[ -f /opt/dev/sh/chruby/chruby.sh ]] && { type chruby >/dev/null 2>&1 || chruby () { source /opt/dev/sh/chruby/chruby.sh; chruby "$@"; } }
[ -f /opt/dev/dev.sh ] && source /opt/dev/dev.sh
source ~/.terminal/environment
# cloudplatform: add Shopify clusters to your local kubernetes config
#export KUBECONFIG=${KUBECONFIG:+$KUBECONFIG:}/Users/rodrigolazoti/.kube/config:/Users/rodrigolazoti/.kube/config.shopify.cloudplatform
#for file in /Users/rodrigolazoti/src/github.com/Shopify/cloudplatform/workflow-utils/*.bash; do source ${file}; done
#kubectl-short-aliases
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"
export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH"