-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
551 lines (463 loc) · 18.4 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
# next lets set some enviromental/shell pref stuff up
# setopt NOHUP
#setopt NOTIFY
#setopt NO_FLOW_CONTROL
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY SHARE_HISTORY
# setopt AUTO_LIST # these two should be turned off
# setopt AUTO_REMOVE_SLASH
# setopt AUTO_RESUME # tries to resume command of same name
unsetopt BG_NICE # do NOT nice bg commands
setopt CORRECT # command CORRECTION
setopt EXTENDED_HISTORY # puts timestamps in the history
setopt HASH_CMDS # turns on hashing
setopt HASH_DIRS # turns on hashing
#
#setopt MENUCOMPLETE
setopt LIST_AMBIGUOUS
setopt ALL_EXPORT
# Set/unset shell options
setopt notify globdots correct pushdtohome cdablevars autolist
setopt correctall autocd recexact longlistjobs
setopt autoresume histignoredups pushdsilent
setopt autopushd pushdminus extendedglob rcquotes mailwarning
unsetopt bgnice autoparamslash
# Autoload zsh modules when they are referenced
zmodload -a zsh/stat stat
zmodload -a zsh/zpty zpty
zmodload -a zsh/zprof zprof
#zmodload -ap zsh/mapfile mapfile
autoload -U zmv
alias mmv='noglob zmv -W'
PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:$HOME/bin/:$HOME/.composer/vendor/bin:$PATH"
TZ="Europe/Helsinki"
HISTFILE=$HOME/.zhistory
HISTSIZE=100000
SAVEHIST=100000
HOSTNAME="`hostname`"
PAGER='less'
EDITOR='vim'
autoload colors zsh/terminfo
if [[ "$terminfo[colors]" -ge 8 ]]; then
colors
fi
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
eval $color='$fg_no_bold[${(L)color}]'
(( count = $count + 1 ))
done
PR_NO_COLOR="%{$terminfo[sgr0]%}"
NO_COLOR="$terminfo[sgr0]"
PS1="$PR_GREEN%n$PR_BLUE@$PR_YELLOW%m$PR_GREEN:$PR_BLUE%5c/$PR_NO_COLOR%(!.#.$) "
#RPS1="$PR_YELLOW(%D{%d.%m %H:%M:%S})$PR_NO_COLOR"
#LANGUAGE=
LC_ALL='en_US.UTF-8'
LANG='en_US.UTF-8'
LC_CTYPE=C
MUTT_EDITOR=vim
unsetopt ALL_EXPORT
# # --------------------------------------------------------------------
# # aliases
# # --------------------------------------------------------------------
alias slrn="slrn -n"
alias man='LC_ALL=C LANG=C man'
alias f=finger
alias la='ls -al'
alias ls='ls --color=auto '
alias cp='cp -i'
alias sl='ls'
alias la='ls -lah'
alias lars='ls -lahrS'
alias lsd='ls -d */'
alias du='du -h'
alias df='df -h'
alias xc='exit'
alias cd.='cd ..'
alias cgrep='grep -n --color=always'
alias git=hub
alias g='git'
#alias cr='cd $(git rev-parse --show-cdup)'
alias sam='dc sam'
alias gv='ge vi'
alias v='vi'
alias d='drush'
alias pf='platform'
alias icanhas='sudo apt-fast install'
alias drupalcs='phpcs --standard=~/drupal/drupalcs/Drupal/ruleset.xml'
alias screen="screen -U"
#alias gd="gdiff --color | diff-so-fancy"
alias gd="git diff"
alias t=todo
alias wt=wundertools
alias vsh="vagrant ssh"
alias vup="vagrant up"
alias vgs="vagrant global-status"
alias ansible-vault="ansible-vault --vault-password-file=$WT_ANSIBLE_VAULT_FILE"
alias k=kontena
alias vc="vyprvpn connect"
#alias vagrant="vagrant --skip-dependency-manager"
#alias lpwd="lpass show"
alias ppwd="pass -c"
alias -s pdf=evince
alias -s txt=cat
alias -s zip=unzip
alias -s js=vim
alias -s php=vim
alias -s module=vim
alias -s jpg=eog
alias -s png=eog
alias -s gif=eog
alias -s JPG=eog
alias -s PNG=eog
alias -s GIF=eog
alias -s pro=vim
# alias =clear
#chpwd() {
# [[ -t 1 ]] || return
# case $TERM in
# sun-cmd) print -Pn "\e]l%~\e\\"
# ;;
# *xterm*|screen|rxvt|(dt|k|E)term) print -Pn "\e]2;%~\a"
# ;;
# esac
#}
#chpwd
autoload -U compinit
compinit
autoload bashcompinit
bashcompinit
bindkey "^?" backward-delete-char
bindkey '^[OH' beginning-of-line
bindkey '^[OF' end-of-line
bindkey '^[[5~' up-line-or-history
bindkey '^[[6~' down-line-or-history
bindkey "^r" history-incremental-search-backward
bindkey ' ' magic-space # also do history expansion on space
bindkey '^I' complete-word # complete on tab, leave expansion to _expand
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
bindkey '\e[3~' delete-char
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
zstyle ':completion:*' menu select=1 _complete _ignored _approximate
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
# Completion Styles
zstyle ':completion:*' accept-exact false
# list of completers to use
zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
# allow one error for every three characters typed in approximate completer
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
# insert all expansions for expand completer
zstyle ':completion:*:expand:*' tag-order all-expansions
# formatting and messages
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''
# match uppercase from lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# offer indexes before parameters in subscripts
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
# command for process lists, the local web server details and host completion
# on processes completion complete all user processes
zstyle ':completion:*:processes' command 'ps -au$USER'
## add colors to processes for kill completion
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
#zstyle ':completion:*:processes' command 'ps -o pid,s,nice,stime,args'
#zstyle ':completion:*:urls' local 'www' '/var/www/htdocs' 'public_html'
#
#NEW completion:
# 1. All /etc/hosts hostnames are in autocomplete
# 2. If you have a comment in /etc/hosts like #%foobar.domain,
# then foobar.domain will show up in autocomplete!
zstyle ':completion:*' hosts $(awk '/^[^#]/ {print $2 $3" "$4" "$5}' /etc/hosts | grep -v ip6- && grep "^#%" /etc/hosts | awk -F% '{print $2}')
# Filename suffixes to ignore during completion (except after rm command)
zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
'*?.old' '*?.pro'
# the same for old style completion
#fignore=(.o .c~ .old .pro)
# ignore completion functions (until the _ignored completer)
zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*:*:*:users' ignored-patterns \
adm apache bin daemon games gdm halt ident junkbust lp mail mailnull \
named news nfsnobody nobody nscd ntp operator pcap postgres radvd \
rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs avahi-autoipd\
avahi backup messagebus beagleindex debian-tor dhcp dnsmasq fetchmail\
firebird gnats haldaemon hplip irc klog list man cupsys postfix\
proxy syslog www-data mldonkey sys snort
# SSH Completion
zstyle ':completion:*:scp:*' tag-order \
files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:scp:*' group-order \
files all-files users hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' tag-order \
users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:ssh:*' group-order \
hosts-domain hosts-host users hosts-ipaddr
zstyle '*' single-ignored show
zstyle ':chpwd:profiles:~/projects(|/|/*)' profile projects
if [[ ${TERM} == "screen-256color-bce" || ${TERM} == "screen-bce" || ${TERM} == "screen" ]]; then
precmd () { print -Pn "\033k\033\134\033k%1d/\033\134" }
preexec () {
#print -Pn "\033k\033\134\033k%m[$1]\033\134"
local CMD=${1[(wr)^(<*|*=*|sudo|exec|-*)]}
echo -n "\ek$CMD\e\\"
}
#precmd () { print -Pn "\033k\033\134\033k%m[%1d]\033\134" }
#preexec () { print -Pn "\033k\033\134\033k%m[$1]\033\134" }
else
precmd () { print -Pn "\e]0;%n@%m: %~\a" }
preexec () { print -Pn "\e]0;%n@%m: $1\a" }
fi
#setopt extended_glob
#preexec () {
# if [[ "$TERM" == "screen" ]]; then
# local CMD=${1[(wr)^(*=*|sudo|-*)]}
# echo -ne "\ek$CMD\e\\"
# fi
#}
eval $(dircolors -b ~/.zsh/.dircolors)
# zgitinit and prompt_wunjo_setup must be somewhere in your $fpath, see README for more.
setopt promptsubst
# Load the prompt theme system
#autoload -U promptinit
#promptinit
# Use the wunjo prompt theme
#prompt wunjo
# git integration
setopt prompt_subst
autoload colors
colors
autoload -Uz vcs_info
# set some colors
for COLOR in RED GREEN YELLOW WHITE BLACK CYAN; do
eval PR_$COLOR='%{$fg[${(L)COLOR}]%}'
eval PR_BRIGHT_$COLOR='%{$fg_bold[${(L)COLOR}]%}'
done
PR_RESET="%{${reset_color}%}";
FMT_BRANCH="${PR_GREEN}%b%u%c${PR_RESET}" # e.g. master¹²
FMT_ACTION="(${PR_CYAN}%a${PR_RESET}%)" # e.g. (rebase-i)
FMT_PATH="%R${PR_YELLOW}/%S" # e.g. ~/repo/subdir
# check-for-changes can be really slow.
# you should disable it, if you work with large repositories
zstyle ':vcs_info:*:prompt:*' check-for-changes true
zstyle ':vcs_info:*:prompt:*' unstagedstr '¹' # display ¹ if there are unstaged changes
zstyle ':vcs_info:*:prompt:*' stagedstr '²' # display ² if there are staged changes
zstyle ':vcs_info:*:prompt:*' actionformats "${FMT_BRANCH}${FMT_ACTION}//" "${FMT_PATH}"
zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}" "${FMT_PATH}"
zstyle ':vcs_info:*:prompt:*' nvcsformats "" "%~"
function precmd {
vcs_info 'prompt'
}
#todoprompt(){
# if $(which todo &> /dev/null)
# then
# num=$(echo $(todo ls | wc -l))
# let todos=num-2
# if [ $todos != 0 ]
# then
# echo "TODO: $todos"
# else
# echo ""
# fi
# else
# echo ""
# fi
#}
#set_prompt () {
# export RPROMPT="%{$fg_bold[cyan]%}$(todoprompt)%{$reset_color%}"
#}
#precmd() {
# set_prompt
#}
function lprompt {
local brackets=$1
local color1=$2
local color2=$3
local bracket_open="${color1}${brackets[1]}${PR_RESET}"
local bracket_close="${color1}${brackets[2]}"
local git='$vcs_info_msg_0_'
local cwd="${color2}%B%1~%b"
PROMPT="${PR_RESET}${bracket_open}${git}${cwd}${bracket_close}%# ${PR_RESET}"
}
function rprompt {
local brackets=$1
local color1=$2
local color2=$3
local bracket_open="${color1}${brackets[1]}${PR_RESET}"
local bracket_close="${color1}${brackets[2]}${PR_RESET}"
local colon="${color1}:"
local at="${color1}@${PR_RESET}"
local user_host="${color2}%n${at}${color2}%m"
local vcs_cwd='${${vcs_info_msg_1_%%.}/$HOME/~}'
local cwd="${color2}%B%20<..<${vcs_cwd}%<<%b"
local inner="${user_host}${colon}${cwd}"
RPROMPT="${PR_RESET}${bracket_open}${inner}${bracket_close}${PR_RESET}"
}
function prompti {
# PS1="$PR_GREEN%n$PR_BLUE@$PR_YELLOW%m$PR_GREEN:$PR_BLUE%5c/$PR_NO_COLOR%(!.#.$) "
local brackets=$1
local color1=$2
local color2=$3
local at="${color1}@${PR_RESET}"
local bracket_open="${color1}${brackets[1]}${PR_RESET}"
local bracket_close="${color1}${brackets[2]}${PR_RESET}"
local git='$vcs_info_msg_0_'
local cwd="${color2}%B%1~%b"
PROMPT="$PR_GREEN%n$PR_BLUE@$PR_YELLOW%m$PR_GREEN:$PR_BLUE%5c/$PR_NO_COLOR${bracket_open}${git}${bracket_close} %(!.#.$) "
}
function prompt_pro {
# PS1="$PR_GREEN%n$PR_BLUE@$PR_YELLOW%m$PR_GREEN:$PR_BLUE%5c/$PR_NO_COLOR%(!.#.$) "
local brackets=$1
local color1=$2
local color2=$3
local at="${color1}@${PR_RESET}"
local bracket_open="${color1}${brackets[1]}${PR_RESET}"
local bracket_close="${color1}${brackets[2]}${PR_RESET}"
local git='$vcs_info_msg_0_'
local cwd="${color2}%B%1~%b"
local project='test'
PROMPT="$PR_GREEN%n$PR_BLUE@$PR_YELLOW%m$PR_GREEN:$PR_BLUE%5c/$PR_NO_COLOR${bracket_open}${project}${bracket_close}${bracket_open}${git}${bracket_close} %(!.#.$) "
}
#lprompt '[]' $BR_BRIGHT_BLACK $PR_WHITE
#rprompt '()' $BR_BRIGHT_BLACK $PR_WHITE
prompti '[]' $BR_BRIGHT_BLACK $PR_WHITE
#chpwd() {
#if[[PWD ~ $GIT_REPO_DIR ]]
#print "chpwd(): Switching to profile: $profile"
#prompt_pro '[]' $BR_BRIGHT_BLACK $PR_WHITE
#fi
#}
zle-keymap-select() {
if [[ $KEYMAP = vicmd ]]; then
echo -ne "\033]12;Red\007"
else
echo -ne "\033]12;Green\007"
fi
}
zle -N zle-keymap-select
zle-line-init () {
zle -K viins
if [ $TERM = "rxvt-256color" ]; then
echo -ne "\033]12;Green\007"
fi
}
zle -N zle-line-init
bindkey -v
bindkey -M viins '^R' history-incremental-pattern-search-backward
bindkey -M viins '^F' history-incremental-pattern-search-forward
bindkey "^[[A" history-incremental-pattern-search-backward
bindkey "^[[B" history-incremental-pattern-search-forward
unset GREP_OPTIONS
#alias grep='grep --color=auto'
export GREP_COLOR='1;33'
source ~/.zsh/.git-completion.sh
source ~/.zsh/.git-flow-completion.sh
#function zle-line-init zle-keymap-select {
# RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
# RPS2=$RPS1
# zle reset-prompt
#}
#zle -N zle-line-init
#zle -N zle-keymap-select
expand-or-complete-with-dots() {
echo -n "\e[31m......\e[0m"
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots
insert_sudo () { zle beginning-of-line; zle -U "sudo " }
zle -N insert-sudo insert_sudo
bindkey "^[s" insert-sudo
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/zsh-history-substring-search.zsh
source ~/.zsh/grep_with_file_shortcuts.zsh
source ~/.zsh/lpass_shortcuts.zsh
source ~/.zsh/zsh-functions.zsh
source ~/.zsh/kubectl.plugin.zsh
fpath=(~/code/drush_zsh/zsh $fpath)
fpath=(~/.zsh/completion $fpath)
autoload -U compinit
compinit -i
#grep() {
# if [[ -t 0 && -t 1 ]]; then
# command grep -n "$@"
# else
# command grep "$@"
# fi
#}
# make compass work with utf-8
#export RUBYOPT=-Ku
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[ -s "/home/janne/.scm_breeze/scm_breeze.sh" ] && source "/home/janne/.scm_breeze/scm_breeze.sh"
source /home/janne/.zsh/lpass_bash_completion
source /home/janne/.zsh/lpwd_completion
export LPASS_CLIPBOARD_COMMAND="xclip -selection clipboard -in -l 1"
export PASS_DISABLE_PINENTRY=1
export LPASS_AGENT_TIMEOUT=28800
export LPASS_ASKPASS=/home/janne/bin/lpass_prompt
#autoload predict-on
#predict-on
#function zle-line-init zle-keymap-select {
#VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"
#RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/} $EPS1"
#zle reset-prompt
#}
#zle -N zle-line-init
#zle -N zle-keymap-select
# Platform.sh CLI configuration
#PLATFORMSH_CONF=~/.composer/vendor/platformsh/cli/platform.rc
#[ -f "$PLATFORMSH_CONF" ] && . "$PLATFORMSH_CONF"
. ~/.zsh/z.sh
# source /usr/share/zsh/vendor-completions/_pass
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=0;32:*.jpe=0;32:*.jpeg=0;32:*.gif=0;32:*.bmp=0;32:*.pbm=0;32:*.pgm=0;32:*.ppm=0;32:*.tga=0;32:*.xbm=0;32:*.xpm=0;32:*.tif=0;32:*.tiff=0;32:*.png=0;32:*.eps=0;32:*.mpg=0;32:*.mpeg=0;32:*.avi=0;32:*.fli=0;32:*.gl=0;32:*.dl=0;32:*.xcf=0;32:*.xwd=0;32:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:*.o=01;33:*.c=01;35:*.h=01;35:*.m=01;35:*Makefile=0;35:*tags=01;32:*~=01;30:*.swp=01;30:*README=01;31:*.tex=01;31:*.htm=01;31:*.html=01;31:*readme=00;31:*.pdf=00;31:*.doc=00;31:*.ps=00;31:*.dvi=00;31:*.sql=01;37:*.sqlite=01;37:*.js=01;33:*.xul=01;35:*.xml=01;35:*.php=01;36:*.inc=01;36:*.css=01;32:*.html=01;36:*.module=01;37:"
export WT_ANSIBLE_VAULT_FILE="~/bin/ansible-vault-pass"
export UPCLOUD_API_USER="wunderkraut"
export UPCLOUD_API_PASSWD=`upcloud-api-key`
export DNSIMPLE_EMAIL="[email protected]"
export DNSIMPLE_API_TOKEN=`dnsimple-api-token`
export VISUAL=vim
autoload edit-command-line; zle -N edit-command-line
bindkey -M vicmd v edit-command-line
which kontena > /dev/null && . "$( kontena whoami --bash-completion-path )"
#complete -F "ahoy --generate-bash-completion" ahoy
#source ~/.zsh/zplug/init.zsh
# source .zsh/zsh-dir-scroller/dir-scroller.zsh
# alt + left arrow and alt + right arrow
#bindkey "^[[1;3D" _dir_scroller_prev
#bindkey "^[[1;3C" _dir_scroller_next
#
# # or for vi command mode
#bindkey -M vicmd 'H' _dir_scroller_prev
#bindkey -M vicmd 'L' _dir_scroller_next
export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
PATH=~/.local/bin:$PATH
#export AUTO_NTFY_DONE_LONGER_THAN=-L60
#export AUTO_NTFY_DONE_IGNORE="htop vi ssh bi su"
#eval "$(ntfy shell-integration)"
export NVM_DIR="/home/janne/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# tabtab source for serverless package
# uninstall by removing these lines or running `tabtab uninstall serverless`
[[ -f /home/janne/.nvm/versions/node/v6.0.0/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh ]] && . /home/janne/.nvm/versions/node/v6.0.0/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.zsh
# tabtab source for sls package
# uninstall by removing these lines or running `tabtab uninstall sls`
[[ -f /home/janne/.nvm/versions/node/v6.0.0/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh ]] && . /home/janne/.nvm/versions/node/v6.0.0/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.zsh
#export ANSIBLE_CALLBACK_PLUGINS=/usr/local/lib/python2.7/dist-packages/ara/plugins/callbacks
#export ANSIBLE_ACTION_PLUGINS=/usr/local/lib/python2.7/dist-packages/ara/plugins/actions
#export ANSIBLE_LIBRARY=/usr/local/lib/python2.7/dist-packages/ara/plugins/modules