forked from amacgregor/dot-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
101 lines (76 loc) · 2.99 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
#########################################
# 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=(brew git mix git-flow composer sudo docker)
##########################################
# 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 Functions file
if [ -e ~/.zsh_files/functions.zsh ]; then
source ~/.zsh_files/functions.zsh
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 -)"
##########################################
# Experimental
##########################################
# OPAM configuration
#. /home/amacgregor/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
# Motivation reminder
echo "2017 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
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
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