-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
70 lines (56 loc) · 1.78 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
#!/usr/bin/zsh
# Source profile and aliasrc.
source "$HOME/.config/profile"
source "$HOME/.config/zsh/aliasrc"
# Load and export environment variables.
set -a
. $HOME/.config/zsh/zsh.env
set +a
# List files at every directory change.
function chpwd() {
emulate -L zsh
clear
l
}
# Enable zsh syntax highlighting and auto-quoting.
source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.config/zsh/zsh-autoquoter/zsh-autoquoter.zsh
ZAQ_PREFIXES=('git commit( [^ ]##)# -[^ -]#m' 'ssh( [^ ]##)# [^ -][^ ]#' 'spotifydl' 'audio-dl' 'caption-dl' 'video-dl' 'rn' 'music' 's' 'bm add' 'gn' 'n a' 'bs bm a' 'bs n a' 'bm a' 'n s' 'bs n s' 'bs bm s' 'bm s' 'bs s' 'n g' 'bg n g' 'bg bm g' 'bm g' 'bg g' 'yt-dlp')
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(zaq)
# Enable zsh vi mode.
source ~/.config/zsh/zsh-vi-mode/zsh-vi-mode.plugin.zsh
ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BEAM
ZVM_NORMAL_MODE_CURSOR=$ZVM_CURSOR_BLOCK
ZVM_OPPEND_MODE_CURSOR=$ZVM_CURSOR_UNDERLINE
function apparate() {
destination="$1"
if [ $destination = "--help" ]; then
apparition apparate --help
return
fi
output=$(apparition apparate --called-from-shell-function "$1")
if [ $? = 0 ]; then
eval $output
else
apparition print-error "$output"
fi
}
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
fpath+=~/.zfunc
# History search.
bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward
# List files at shell startup.
# set-title
l
# bun
[ -s "/home/david/.bun/_bun" ] && source "/home/david/.bun/_bun"
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# modular
export MODULAR_HOME="/home/david/.modular"
export PATH="/home/david/.modular/pkg/packages.modular.com_mojo/bin:$PATH"
# Use the 'starship' prompt.
eval "$(starship init zsh)"