-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
35 lines (28 loc) · 774 Bytes
/
Copy path.zshrc
File metadata and controls
35 lines (28 loc) · 774 Bytes
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
#!/bin/zsh
#shellcheck disable=SC2155,SC2034,SC2148
# If not interactive shell, return
[[ -o interactive ]] || return
# Initialize completion system early
autoload -Uz compinit
compinit
# Vi mode
bindkey -v
# Edit command line in editor with 'v' in vicmd mode
autoload -Uz edit-command-line
zle -N edit-command-line
bindkey -M vicmd 'v' edit-command-line
# Menu completion bindings
bindkey -M viins '^N' menu-complete
bindkey -M vicmd '^N' menu-complete
# Load modular configuration
loader="$HOME/.config/zsh/load.zsh"
if [[ -f "$loader" ]]; then
source "$loader"
else
echo "Error: Loader script not found: $loader" >&2
return 1
fi
# Atuin shell history (load after other configs)
if command -v atuin >/dev/null 2>&1; then
eval "$(atuin init zsh)"
fi