-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
executable file
·87 lines (63 loc) · 2.17 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
export PATH="/opt/homebrew/opt/findutils/libexec/gnubin:$PATH"
MANPATH="/opt/homebrew/findutils/libexec/gnuman:$MANPATH"
# prefer coreutils
PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/opt/homebrew/opt/coreutils/libexec/gnuman:$MANPATH"
# prefer gnu-sed
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
MANPATH="/opt/homebrew/opt/gnu-sed/libexec/gnuman:$MANPATH"
autoload -U compinit
compinit
# use vim as an editor
export EDITOR=vim
# use vim mode
set -o vi
# color support for less/more
export LESS="--ignore-case --quiet --chop-long-lines --quit-if-one-screen --no-init --raw-control-chars"
# awesome cd movements from zshkit
setopt autocd
setopt autopushd pushdminus pushdsilent pushdtohome
setopt cdablevars
# Try to correct command line spelling
setopt correct correct_all
# Enable extended globbing
setopt extended_glob
# History-related
export HISTSIZE=10000
export SAVEHIST=10000
export HISTFILE=$HOME/.zsh_history
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_REDUCE_BLANKS
setopt HIST_IGNORE_SPACE
setopt HIST_VERIFY
setopt EXTENDED_HISTORY
export IRBRC=$HOME/.irbrc
# control-r search
bindkey "^R" history-incremental-search-backward
bindkey "^P" history-beginning-search-backward
bindkey "^N" history-beginning-search-forward
# additional configuration
if [ -e "$HOME/.aliases" ]; then
source "$HOME/.aliases"
fi
if [ -e "$HOME/.dockerrc" ]; then
source "$HOME/.dockerrc"
fi
if [ -e "$HOME/.promptrc" ]; then
source "$HOME/.promptrc"
fi
export PATH="$HOME/.bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$PATH:$HOME/.dotnet/tools"
# Java support
#source $HOME/.asdf/plugins/java/set-java-home.zsh
# Dotnet support
#source $HOME/.asdf/plugins/dotnet-core/set-dotnet-home.zsh
# The next line updates PATH for the Google Cloud SDK.
#if [ -f '/Users/bkaney/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/bkaney/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
#if [ -f '/Users/bkaney/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/bkaney/google-cloud-sdk/completion.zsh.inc'; fi
source /opt/homebrew/opt/asdf/libexec/asdf.sh