-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
94 lines (76 loc) · 3.08 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
# 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
EDITOR="vim"
ZLE_RPROMPT_INDENT=0
source ~/Tools/Shell/iterm2_shell_integration.zsh
source ~/Tools/Shell/powerlevel10k/powerlevel10k.zsh-theme
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
source ~/Tools/Shell/zsh-better-npm-completion/zsh-better-npm-completion.plugin.zsh
source ~/Tools/Shell/zsh-z/zsh-z.plugin.zsh
source ~/Tools/Shell/omz-homebrew/omz-homebrew.plugin.zsh
source ~/Tools/Shell/ohmyzsh/lib/functions.zsh
source ~/Tools/Shell/ohmyzsh/lib/completion.zsh
source ~/Tools/Shell/ohmyzsh/lib/directories.zsh
source ~/Tools/Shell/ohmyzsh/lib/key-bindings.zsh
source ~/Tools/Shell/ohmyzsh/lib/misc.zsh
source ~/Tools/Shell/ohmyzsh/lib/termsupport.zsh
setopt auto_cd
setopt multios
setopt prompt_subst
# ALIASES
alias edit="webstorm"
alias zshconfig="vim ~/.zshrc"
alias zshreload="source ~/.zshrc"
alias dk="docker"
alias dkc="docker-compose"
alias ping="prettyping --nolegend"
alias du="ncdu --color dark -rr -x --exclude .git --exclude node_modules"
alias k="kubectl"
alias cc="DATASTORE_TYPE=kubernetes KUBECONFIG=~/.kube/config calicoctl"
alias tf="terraform"
# from omz
unalias lsa
unalias l
unalias ll
unalias la
alias ls='exa --icons --group-directories-first -F'
alias l='exa --git-ignore --icons --group-directories-first -F -1'
alias ll='exa --icons --group-directories-first --git -lbhgaaF'
alias llm='exa --icons --git -lbhgaaF --sort=modified'
alias lx='exa -lbhHigUmuSa@'
alias lt='exa --tree'
alias tree='exa --tree'
export PATH="$PATH:/Users/niklv/Library/Application Support/JetBrains/Toolbox/scripts"
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# should be at bottom before zsh-history-substring-search
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Unbind OHMYZSH conflicting keybindings
# [Ctrl-RightArrow] - unbind
bindkey -r -M emacs '^[[1;5C'
bindkey -r -M viins '^[[1;5C'
bindkey -r -M vicmd '^[[1;5C'
# [Ctrl-LeftArrow] - unbind
bindkey -r -M emacs '^[[1;5D'
bindkey -r -M viins '^[[1;5D'
bindkey -r -M vicmd '^[[1;5D'
# [Alt-RightArrow] - move forward one word
bindkey -M emacs '^[^[[C' forward-word
bindkey -M viins '^[^[[C' forward-word
bindkey -M vicmd '^[^[[C' forward-word
# [Alt-LeftArrow] - move backward one word
bindkey -M emacs '^[^[[D' backward-word
bindkey -M viins '^[^[[D' backward-word
bindkey -M vicmd '^[^[[D' backward-word