-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_zshrc
64 lines (51 loc) · 1.57 KB
/
dot_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
### Added by Zinit's installer
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
print -P "%F{160}▓▒░ The clone has failed.%f%b"
fi
source "$HOME/.zinit/bin/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
scmbreeze/scm_breeze
### End of Zinit's installer chunk
zinit wait lucid light-mode for \
atinit"zicompinit; zicdreplay" \
zdharma-continuum/fast-syntax-highlighting \
atload"_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions \
agkozak/zsh-z
zinit wait lucid for \
OMZP::docker-compose \
OMZP::kubectl \
OMZP::fzf
KEYTIMEOUT=1
bindkey -e
SAVEHIST=100000
HISTFILE=~/.zsh_history
function fallback_command {
for com in $argv; do
if command -v $com &> /dev/null; then
echo "$com"
break
fi;
done
}
alias l="$(fallback_command exa ls)"
alias v="$(fallback_command nvim vim vi)"
alias d="docker"
if command -v thefuck &> /dev/null; then
eval "$(thefuck --alias)"
fi
autoload -U select-word-style
select-word-style bash
export WORDCHARS='.-'
if type starship > /dev/null; then
eval "$(starship init zsh)"
fi