mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
chore(config): set EDITOR/VISUAL defaults and update fish/zsh keybindings
This commit is contained in:
1 parent
ac912e6233
commit
568bf5c875
3 files changed
+7
-1
No files matched your search
@@ -18,6 +18,8 @@ set -gx CODE_ROOT $HOME/Developer
|
|||||||
# Git hosts (non-secret; tokens are in secrets.fish)
|
# Git hosts (non-secret; tokens are in secrets.fish)
|
||||||
set -gx GITEA_LOGIN code.sonr.org
|
set -gx GITEA_LOGIN code.sonr.org
|
||||||
set -gx GITLAB_HOST git.sonr.org
|
set -gx GITLAB_HOST git.sonr.org
|
||||||
|
set -gx EDITOR nvim
|
||||||
|
set -gx VISUAL nvim
|
||||||
|
|
||||||
test -x /usr/bin/brave-origin-nightly; and set -gx BROWSER /usr/bin/brave-origin-nightly
|
test -x /usr/bin/brave-origin-nightly; and set -gx BROWSER /usr/bin/brave-origin-nightly
|
||||||
test -x /usr/bin/chromium; and set -gx CHROME_EXECUTABLE /usr/bin/chromium
|
test -x /usr/bin/chromium; and set -gx CHROME_EXECUTABLE /usr/bin/chromium
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ function fish_user_key_bindings
|
|||||||
# Keys owned by kitty.conf never reach fish and are NOT bound here:
|
# Keys owned by kitty.conf never reach fish and are NOT bound here:
|
||||||
# ctrl-g → lazygit overlay, ctrl-a → omp hsplit, ctrl-y → yazi vsplit,
|
# ctrl-g → lazygit overlay, ctrl-a → omp hsplit, ctrl-y → yazi vsplit,
|
||||||
# ctrl-h/j/k/l → vim-aware split nav (pass_keys.py).
|
# ctrl-h/j/k/l → vim-aware split nav (pass_keys.py).
|
||||||
bind ctrl-e nvim repaint
|
# ctrl-e: yazi, same as ctrl-f (cd's to yazi's exit dir on quit).
|
||||||
|
bind ctrl-e 'yy; commandline -f repaint'
|
||||||
bind ctrl-b purple repaint
|
bind ctrl-b purple repaint
|
||||||
bind ctrl-y clip-last
|
bind ctrl-y clip-last
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ if [ -d "$HOME/.config/zsh/functions" ]; then
|
|||||||
unset _f
|
unset _f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ZLE keybinds — zsh ports of fish_user_key_bindings.fish
|
||||||
|
[ -f "$HOME/.config/zsh/keybinds.zsh" ] && . "$HOME/.config/zsh/keybinds.zsh"
|
||||||
|
|
||||||
# atuin shell history
|
# atuin shell history
|
||||||
[ -f "$HOME/.atuin/bin/env" ] && . "$HOME/.atuin/bin/env"
|
[ -f "$HOME/.atuin/bin/env" ] && . "$HOME/.atuin/bin/env"
|
||||||
command -v atuin >/dev/null 2>&1 && eval "$(atuin init zsh)"
|
command -v atuin >/dev/null 2>&1 && eval "$(atuin init zsh)"
|
||||||
|
|||||||
Reference in new issue
Block a user