-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
47 lines (37 loc) · 1.24 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
# Source Prezto: https://github.com/sorin-ionescu/prezto
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Java
#export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,exports,bash_aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
# History size
SAVEHIST=10000
HISTSIZE=10000
HISTFILE=~/.zsh_history
# Append to zsh history file, rather than overwriting it
setopt APPEND_HISTORY
# Add to history immediately
setopt INC_APPEND_HISTORY
# More history info, e.g., timestamps
setopt EXTENDED_HISTORY
# Remove duplicates from search
setopt HIST_FIND_NO_DUPS
# Share history between shells
setopt SHARE_HISTORY
# allow clobbering on redirect
setopt clobber
# explicitly set emacs mode
bindkey -e
# use Autojump
[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
# fix sudo autocorrecting issue in zsh
alias sudo='nocorrect sudo'
source ~/.zprofile;
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"