-
Notifications
You must be signed in to change notification settings - Fork 308
/
zshrc
131 lines (98 loc) · 3.64 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#########################################
# Allan MacGregor's ZSH configuration
##########################################
# Path to your oh-my-zsh configuration.
ZSH=~/.oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="allanmacgregor"
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to the command execution time stamp shown
# in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
HIST_STAMPS="mm/dd/yyyy"
# 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=(gpg-agent brew pyenv git mix git-flow composer sudo docker wakatime)
##########################################
# Load External configurationf files
##########################################
# Load oh-my-zsh
if [ -e $ZSH/oh-my-zsh.sh ]; then
source $ZSH/oh-my-zsh.sh
fi
# Load the secrets file
if [ -e ~/.secrets ]; then
source ~/.secrets
fi
# Load the FZF completion
if [ -e ~/.fzf.zsh ]; then
source ~/.fzf.zsh
fi
# Load the Variables file
if [ -e ~/.zsh_files/variables.zsh ]; then
source ~/.zsh_files/variables.zsh
fi
# Load the Aliases file
if [ -e ~/.zsh_files/aliases.zsh ]; then
source ~/.zsh_files/aliases.zsh
fi
# Load the TinyCareTerminal file
if [ -e ~/.zsh_files/tct.zsh ]; then
source ~/.zsh_files/tct.zsh
fi
# Load the Functions file
if [ -e ~/.zsh_files/functions.zsh ]; then
source ~/.zsh_files/functions.zsh
fi
# Add the following to your shell init to set up gpg-agent automatically for every shell
#if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
# source ~/.gnupg/.gpg-agent-info
# export GPG_AGENT_INFO
#else
# eval $(gpg-agent --daemon ~/.gnupg/.gpg-agent-info)
#fi
# Load the Powerline Bindings
#if [ -e $POWERLINE_PATH/powerline/bindings/zsh/powerline.zsh ]; then
# source $POWERLINE_PATH/powerline/bindings/zsh/powerline.zsh
#fi
##########################################
# Environment setups
##########################################
# Python with PyEnv setup
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
# Ruby with RbEnv setup
eval "$(rbenv init -)"
# Color Scheme for Ruby // Requires Base16 Shell
#$HOME/.config/base16-shell/base16-tomorrow.dark.sh
# Elixir Version information
ELIXIR_VERSION=$(elixir -v | grep -o 'Elixir \d.\d.\d' | grep -o '\d.\d.\d')
# Tmuxifier Autocomplete
eval "$(tmuxifier init -)"
# Requierd for gpg support on commits
export GPG_TTY="$(tty)"
# PHPBrew support
source /Users/amacgregor/.phpbrew/bashrc
##########################################
# Experimental
##########################################
# OPAM configuration
#. /home/amacgregor/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
# Motivation reminder
echo "2019 12 31" | awk '{dt=mktime($0 " 00 00 00")-systime(); print "There are " int(dt/86400/7) " weeks left until the year ends. What will you do?";}'
# Run Fortune on a new terminal
#fortune quotes
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# begin gotodir completion
. <(gotodir --completion)
# end gotodir completion
# begin gotodir completion
. <(gotodir --completion)
# end gotodir completion
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash