-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
122 lines (94 loc) · 2.92 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
# Zsh configuration (BSD Unix)
# created by jpjenk
#===================================
# Antigen Configuration
#===================================
if [ `uname -n` = "teststrata.geology.wisc.edu" ]; then
source /Users/jpjenk/repos/antigen/bin/antigen.zsh
else
source /usr/local/share/antigen/antigen.zsh
fi
## Load the oh-my-zsh library
antigen use oh-my-zsh
## Framework bundles
antigen bundle perl
antigen bundle git
antigen bundle python
antigen bundle pip
# antigen bundle atom
# antigen bundle z
antigen bundle node
# antigen bundle command-not-found
# antigen bundle autojump
# antigen bundle common-aliases
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-history-substring-search ./zsh-history-substring-search.zsh
antigen bundle zsh-users/zsh-completions
## OS specific bundles
antigen bundle osx
antigen bundle brew
## Load a theme
antigen theme robbyrussell
## Close Antigen calls
antigen apply
#===================================
# Terminal Vi Mode Configuration
#===================================
## Set Vi modal keymappings
bindkey -v
## Built-in defaults:
## <esc> vi-cmd-mode
## '^[' vi-cmd-mode
## '^j' return
## 'i' vi-insert-mode
## '^l' clear-screen
bindkey '^N' down-history
bindkey '^h' backward-delete-char
bindkey '^o' backward-kill-word
bindkey '^P' up-history
bindkey '^r' history-incremental-search-backward
## Vi command mode prompt
function zle-line-init zle-keymap-select {
VIM_PROMPT="%{$fg_bold[red]%} [% VISUAL MODE]% %{$reset_color%}"
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
export KEYTIMEOUT=1
#===================================
# Search Paths
#===================================
## By default the following directories are in the path:
## /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
# Additions to /usr/local toolchain and userland
export PATH=/usr/local/sbin:$PATH
export MANPATH=/usr/local/share/man:$MANPATH
# Local python tools
export PATH=/Users/jpjenk/Library/Python/3.7/bin:$PATH
# Package management utilities for PyPy
# export PATH=$PATH:/usr/local/share/pypy3
# Global NPM modules
export NODE_PATH=/usr/local/lib/node_modules
# YarraRiver scripts and software
export PATH=$PATH:~jpjenk/bin
# Root path for Go lang
export PATH=$PATH:/usr/local/opt/go/libexec/bin
#===================================
# Additional Shell Configuration
#===================================
# Additional environment variables
source ./.github_tokens
export HOMEBREW_NO_EMOJI=1
export HOMEBREW_NO_ANALYTICS=1
export EDITOR=vim
export VISUAL=vim
# Load custom shell aliases
source ~/.alias
# iTerm2 shell integration. Also enables imgcat and it2dl.
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# Correct previous console command
eval $(thefuck --alias)
# function search() {
# open /Applications/Safari.app/ "$1";
# }