From c18039a63ed073b10fccd1bcfaa343b9e5d017d2 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Mon, 27 Oct 2025 23:06:42 +0100 Subject: [PATCH] fish: update config --- dot-config/fish/config.fish | 2 ++ dot-config/fish/functions/hyprconfig.fish | 3 +++ dot-config/fish/functions/{lfcd.fish => lf.fish} | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 dot-config/fish/functions/hyprconfig.fish rename dot-config/fish/functions/{lfcd.fish => lf.fish} (87%) diff --git a/dot-config/fish/config.fish b/dot-config/fish/config.fish index 29739441..795c5122 100644 --- a/dot-config/fish/config.fish +++ b/dot-config/fish/config.fish @@ -6,6 +6,8 @@ if status is-interactive set EZA_COLORS "*.patch.skip=38;5;244" command -v fastfetch && command fastfetch -c ~/.config/fastfetch/default.jsonc source (/usr/bin/starship init fish --print-full-init | psub) + set -gx EDITOR 'kks edit' + set -gx VISUAL 'kks edit' set -g fish_greeting end diff --git a/dot-config/fish/functions/hyprconfig.fish b/dot-config/fish/functions/hyprconfig.fish new file mode 100644 index 00000000..76c0f1b9 --- /dev/null +++ b/dot-config/fish/functions/hyprconfig.fish @@ -0,0 +1,3 @@ +function hyprconfig --wraps='kks edit ~/.config/hypr/hypr*.conf ~/.config/hypr/fragments/* ' --description 'alias hyprconfig=kak ~/.config/hypr/hypr*.conf ~/.config/hypr/fragments/* ' + kak ~/.config/hypr/hypr*.conf ~/.config/hypr/fragments/* $argv +end diff --git a/dot-config/fish/functions/lfcd.fish b/dot-config/fish/functions/lf.fish similarity index 87% rename from dot-config/fish/functions/lfcd.fish rename to dot-config/fish/functions/lf.fish index 1e50b6fe..4e64c070 100644 --- a/dot-config/fish/functions/lfcd.fish +++ b/dot-config/fish/functions/lf.fish @@ -11,7 +11,7 @@ # # You may put this in a function called fish_user_key_bindings. -function lfcd --wraps="lf" --description="lf - Terminal file manager (changing directory on exit)" +function lf --wraps="lf" --description="lf - Terminal file manager (changing directory on exit)" # `command` is needed in case `lfcd` is aliased to `lf`. # Quotes will cause `cd` to not change directory if `lf` prints nothing to stdout due to an error. cd "$(command lf -print-last-dir $argv)" -- 2.51.2