forked from imarquezc/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
executable file
·104 lines (82 loc) · 2.25 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
# enable antigen
source /usr/local/share/antigen/antigen.zsh
# Load FPATH functions
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
# Load oh-my-zsh
antigen use oh-my-zsh
# Bundles
antigen bundles <<EOBUNDLES
git
gem
heroku
kubectl
osx
fasd
thefuck
key-bindings
djui/alias-tips
mafredri/zsh-async
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
sindresorhus/[email protected]
# these should be at last!
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-history-substring-search
EOBUNDLES
# Apply antigen
antigen apply
# bind UP and DOWN arrow keys
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# Key bindings
# For iterm2 add keybinding escape sequence
bindkey -e
bindkey '^[f' forward-word
bindkey '^[b' backward-word
bindkey '^[h' backward-delete-word
bindkey '^[d' backward-kill-line
# makes color constants available
autoload -U colors
colors
# enable colored output from ls, etc
export CLICOLOR=1
# History settings
HISTFILE=~/.zhistory
HISTSIZE=100000
SAVEHIST=100000
# Don't show duplicate history entires
setopt hist_find_no_dups
# Remove unnecessary blanks from history
setopt hist_reduce_blanks
# Share history between instances
setopt share_history
setopt hist_ignore_space
setopt hist_ignore_all_dups
# Init rbenv and nodenv
eval "$(rbenv init -)"
eval "$(nodenv init -)"
# mkdir .git/safe in the root of repositories you trust
export PATH=".git/safe/../../bin:$PATH"
export PATH=".git/safe/../../node_modules/.bin:$PATH"
# Create a JAVA_HOME variable, determined dynamically
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home
# Add that to the global PATH variable
export PATH=${JAVA_HOME}/bin:$PATH
# Set Android_HOME
export ANDROID_HOME=~/Library/Android/sdk/
# Add the Android SDK to the ANDROID_HOME variable
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
#Set GRADLE_HOME
export GRADLE_HOME=/Applications/Android\ Studio.app/Contents/gradle/gradle-5.1.1
export PATH=$PATH:$GRADLE_HOME/bin
# functions
if [ -d ~/.bash_functions ]; then
for file in ~/.bash_functions/*; do
. "$file"
done
fi
# aliases
[[ -f ~/.aliases ]] && source ~/.aliases
[[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh
eval $(thefuck --alias)