-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
124 lines (99 loc) · 4.44 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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export TERM="xterm-256color"
if [ "$TERMINAL_EMULATOR" != "JetBrains-JediTerm" ]
then
ZSH_TMUX_AUTOSTART=true
fi
source ~/.zplug/init.zsh
# Zplug plugins
zplug "zplug/zplug"
zplug "romkatv/powerlevel10k", as:theme, depth:1
zplug 'plugins/tmux', from:oh-my-zsh
zplug "plugins/vi-mode", from:oh-my-zsh
zplug "plugins/docker", from:oh-my-zsh
zplug "plugins/docker-compose", from:oh-my-zsh
zplug "zsh-users/zsh-completions"
zplug "tarruda/zsh-autosuggestions", defer:1
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-history-substring-search", defer:3
zplug "matthieusb/zsh-sdkman", use:zsh-sdkman.plugin
zplug "junegunn/fzf", as:command, hook-build:"./install --all", use:"bin/{fzf-tmux,fzf}"
zplug "wfxr/forgit"
zplug "zdharma/zsh-diff-so-fancy", as:command, use:bin/diff-so-fancy
zplug "mnowotnik/docker-fzf-completion", use:"docker-fzf-completion.plugin.zsh"
zplug "Aloxaf/fzf-tab", use:"*.zsh" defer:2
zplug load
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.zplug/repos/robbyrussell/oh-my-zsh
# source completions
fpath=(~/.zsh/completion $fpath)
# source oh-my-zsh
source $ZSH/oh-my-zsh.sh
# enable vi mode
set -o vi
if zplug check tarruda/zsh-autosuggestions; then
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-substring-search-up history-substring-search-down)
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=("${(@)ZSH_AUTOSUGGEST_CLEAR_WIDGETS:#(up|down)-line-or-history}")
bindkey '^ ' autosuggest-accept
bindkey '^f' forward-word
fi
if zplug check zsh-users/zsh-history-substring-search; then
bindkey '\eOA' history-substring-search-up
bindkey '\eOB' history-substring-search-down
bindkey '^p' history-substring-search-up
bindkey '^n' history-substring-search-down
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX=1
[ -f ~/.iterm2_shell_integration.zsh ] && source ~/.iterm2_shell_integration.zsh
#
# history options
HISTFILE="$HOME/.zhistory"
HISTSIZE=10000000
SAVEHIST=10000000
unsetopt histverify # Do not verify expansion cmds
setopt BANG_HIST # Treat the '!' character specially during expansion.
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
setopt SHARE_HISTORY # Share history between all sessions.
setopt globdots # Show hidden files on tab completion
source $HOME/.dot/env/env_ros.sh
source $HOME/.dot/env/env_helm.sh
source $HOME/.dot/aliases/aliases
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
##THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
#export NVM_DIR="$HOME/.nvm"
#[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
#if [ -s "$HOME/.nvm/nvm.sh" ]; then
# export NVM_DIR="$HOME/.nvm"
# nvm_cmds=(nvm node npm yarn ng)
# for cmd in $nvm_cmds ; do
# alias $cmd="unalias $nvm_cmds && unset nvm_cmds && . $NVM_DIR/nvm.sh && $cmd"
# done
#fi
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=.:$GOBIN:$PATH
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
source ~/.zplug/repos/Aloxaf/fzf-tab/fzf-tab.plugin.zsh
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform
# tabtab source for packages
# uninstall by removing these lines
[[ -f ~/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true
eval "$(rbenv init -)"
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/Users/oemer.genc/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)