Repository navigation
feat: set vi mode as default key bindings in fish shell #283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ | |
| fish_add_path -p /etc/profiles/per-user/${config.home.username}/bin | ||
| set -a fish_complete_path ~/.nix-profile/share/fish/completions/ ~/.nix-profile/share/fish/vendor_completions.d/ | ||
| set -x FISH_HISTFILE fish | ||
| fish_vi_key_bindings | ||
| ''; | ||
| shellAliases = { | ||
| neofetch = "fastfetch"; | ||
|
|
@@ -46,10 +47,6 @@ | |
| ta = "tmux new -A -s default"; | ||
| v = "nvim"; | ||
|
|
||
| # Git abbreviations - provided by GitAlias (see shellInit) | ||
| # Only keeping custom ones that differ from GitAlias or have special behavior | ||
| gpn = "git push --no-verify"; # Custom: not in GitAlias | ||
|
Comment on lines
49
to
-51
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This removal of the |
||
|
|
||
| # Function-based abbreviations | ||
| cxe = "_cxe_function"; | ||
| clxe = "_clxe_function"; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this works, a more idiomatic and declarative way to set key bindings in home-manager is to use the
keyBindingsoption within theprograms.fishblock. This improves maintainability by keeping configuration declarative.You should remove this line and instead add
keyBindings = "vi";to yourprograms.fishconfiguration, for example, afterenable = true;.