From 1e8ccdb2a32eb203a2b60757212bdf97190e19f7 Mon Sep 17 00:00:00 2001 From: kj_sh604 Date: Thu, 25 Dec 2025 22:11:57 -0500 Subject: refactor: make sure zsh and fish have the same abbrs --- .config/fish/config.fish | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.config/fish/config.fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 0ce9dbe..966b113 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -7,7 +7,9 @@ if status is-interactive fish_vi_key_bindings # aliases - alias grep='grep --color=auto' + if command grep --color=auto --version >/dev/null 2>&1 + alias grep='grep --color=auto' + end if which eza >/dev/null 2>&1 alias ls="eza" end @@ -19,8 +21,6 @@ if status is-interactive abbr -a c "cal" abbr -a d "disown" abbr -a dots "cd ~/.local/share/.dotfiles/" - abbr -a egrep "grep -E" - abbr -a fgrep "grep -F" abbr -a ks "killall screen" abbr -a lgit 'lazygit' abbr -a p "paru" @@ -30,7 +30,6 @@ if status is-interactive abbr -a sr "screen -r" abbr -a t "timedatectl" abbr -a uncommit 'git reset --soft HEAD^' - abbr -a w "curl wttr.in" abbr -a x "startx" abbr -a yt-best "youtube-dl -cif 'bestvideo+bestaudio/best'" abbr -a yt-m4a "youtube-dl -cif 'bestaudio[ext=m4a]'" -- cgit v1.2.3