refactor: move VI key bindings to config.fish, remove bobthefish

This commit is contained in:
2026-04-26 01:52:10 -04:00
parent e9ae94b6cf
commit 4e696f6a06
3 changed files with 5 additions and 56 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ A feature-rich Fish shell configuration for CachyOS (Arch Linux), built around a
This config layers on top of the CachyOS base Fish configuration and adds:
- **Catppuccin Mocha** theming throughout (prompt, FZF, Zellij)
- **Starship** prompt with Bobthefish fallback color definitions
- **Starship** prompt with VI key bindings
- **Fisher** plugin management with FZF key bindings and Catppuccin syntax colors
- **Smart CLI wrappers** that prefer modern tools (`bat`, `lsd`, `btop`, `dust`, `prettyping`) with graceful fallbacks
- **Auto Python venv** activation on directory change (direnv-aware)
@@ -42,9 +42,9 @@ This config layers on top of the CachyOS base Fish configuration and adds:
├── fish_variables # Universal variables
├── conf.d/ # Auto-sourced configuration fragments
│ ├── abbr.fish # All abbreviations
│ ├── bobthefish.fish # Bobthefish theme + VI key bindings
│ ├── cheat.fish # cheat.sh completions
│ ├── fzf.fish # FZF key binding initialization
│ ├── keybindings.fish # Custom key bindings
│ ├── tailscale.fish # Tailscale CLI completions
│ ├── wakatime.fish # WakaTime shell hook
│ └── zoxide.fish # Zoxide z/zi aliases
-54
View File
@@ -1,54 +0,0 @@
set -g theme_nerd_fonts yes
set -g theme_color_scheme catpuccin-mocha
set -g theme_display_user ssh
set -g default_user rootiest
set -g theme_display_cmd_duration yes
set -g theme_display_git_dirty yes
set -g theme_display_virtualenv yes
set -g theme_display_screen yes
set -g theme_display_docker_machine yes
set -g theme_display_docker_context yes
set -g theme_display_nix yes
set -g theme_display_k8s_context yes
set -g theme_display_k8s_namespace yes
set -g theme_display_aws_vault_profile yes
set -g fish_key_bindings fish_vi_key_bindings
set -g theme_nerd_fonts yes
set -g theme_color_scheme catpuccin-mocha
set -g theme_display_user ssh
set -g default_user rootiest
function bobthefish_colors -S -d 'Define a custom bobthefish color scheme'
# optionally include a base color scheme...
# ___bobthefish_colors default
# then override everything you want! note that these must be defined with `set -x`
set -x color_initial_segment_exit ffffff ce000f --bold
set -x color_initial_segment_private ffffff 255e87
set -x color_initial_segment_su ffffff 189303 --bold
set -x color_initial_segment_jobs ffffff 255e87 --bold
set -x color_path 45475a a6adc8
set -x color_path_basename 45475a ffffff --bold
set -x color_path_nowrite f37799 585b70
set -x color_path_nowrite_basename f37799 585b70 --bold
set -x color_repo 89d88b 585b70
set -x color_repo_work_tree 45475a ffffff --bold
set -x color_repo_dirty f3799a ffffff
set -x color_repo_staged ebd391 45475a
set -x color_vi_mode_default a6adc8 45475a --bold
set -x color_vi_mode_insert 89d88b 45475a --bold
set -x color_vi_mode_visual ebd391 45475a --bold
set -x color_vagrant 48b4fb ffffff --bold
set -x color_aws_vault
set -x color_aws_vault_expired
set -x color_username 585b70 74a8fc --bold
set -x color_hostname 585b70 74a8fc
set -x color_rvm f37799 585b70 --bold
set -x color_virtualfish 89b4fa 585b70 --bold
set -x color_virtualgo 89b4fa 585b70 --bold
set -x color_desk 89b4fa 585b70 --bold
set -x color_nix 89b4fa 585b70 --bold
end
+3
View File
@@ -37,6 +37,9 @@ set -gx SUDO_EDITOR $EDITOR
# ──────────────────────────── GPG variables ─────────────────────────────
set -gx GPG_TTY (tty)
# ────────────────────────────── Key bindings ────────────────────────────
set -g fish_key_bindings fish_vi_key_bindings
# ──────────────────────── Source FZF integration ────────────────────────
source ~/.config/fish/integrations/fzf.fish
# Configure FZF theme