-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_zshrc
More file actions
50 lines (47 loc) · 1.36 KB
/
dot_zshrc
File metadata and controls
50 lines (47 loc) · 1.36 KB
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
# 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
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
docker
gh
extract
gnu-utils
gpg-agent
git
gitfast
zsh-vi-mode
zsh-syntax-highlighting
fzf-tab
)
function zvm_config() {
ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
ZVM_VI_INSERT_ESCAPE_BINDKEY=jk
ZVM_TERM=xterm-256color
ZVM_VI_EDITOR="nvim -c 'set ft=zsh'"
}
export ZSH="$HOME/.oh-my-zsh"
DISABLE_MAGIC_FUNCTIONS=true
DISABLE_AUTO_UPDATE=true
DISABLE_UPDATE_PROMPT=true
source "$ZSH/oh-my-zsh.sh"
function zvm_after_init() {
if command -v fzf &> /dev/null; then
source <(fzf --zsh)
fi
}
function zvm_vi_yank () {
zvm_yank
printf %s "${CUTBUFFER}" | clipcopy
zvm_exit_visual_mode
}
for file in "$HOME"/.zshrc.d/*(.); do
source $file
done
zstyle ':omz:update' mode disabled # disable automatic updates