From b4ab1d94f2f99ae5d075a3cf57310bd59b46914e Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 28 Mar 2025 23:30:07 -0400 Subject: [PATCH] AutoYADM commit: 2025-03-28 23:30:07 --- .config/fish/conf.d/abbr.fish | 5 +++++ .config/fish/config.fish | 17 ++++------------- .config/fish/functions/abbrsave.fish | 3 +++ 3 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 .config/fish/conf.d/abbr.fish create mode 100644 .config/fish/functions/abbrsave.fish diff --git a/.config/fish/conf.d/abbr.fish b/.config/fish/conf.d/abbr.fish new file mode 100644 index 00000000..94af3b8c --- /dev/null +++ b/.config/fish/conf.d/abbr.fish @@ -0,0 +1,5 @@ +abbr -a h hx +abbr -a gc git commit +abbr -a gco git checkout +abbr -a cls "clear; ls" +abbr -a ga git add diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 29de6dd1..03aa2ad7 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,16 +1,7 @@ if status is-interactive # Commands to run in interactive sessions can go here + starship init fish | source + direnv hook fish | source + zoxide init fish | source + thefuck --alias | source end - -starship init fish | source -direnv hook fish | source -zoxide init fish | source -thefuck --alias | source -set -x PATH $HOME/.local/bin $PATH -abbr -a h hx -abbr -a gc git commit -abbr -a gco git checkout -# fish_vi_key_bindings -# fish_vi_cursor -# set -Ux TERM xterm-256color -# set -gx TERM xterm-256color diff --git a/.config/fish/functions/abbrsave.fish b/.config/fish/functions/abbrsave.fish new file mode 100644 index 00000000..7bf778ce --- /dev/null +++ b/.config/fish/functions/abbrsave.fish @@ -0,0 +1,3 @@ +function abbrsave --description "Prepends 'abbr -a' and saves to config" + echo "abbr -a $argv" >> ~/.config/fish/conf.d/abbr.fish +end