From d3013822c88d97a657997ca546a4b3a175f11d47 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Thu, 30 Jan 2025 08:46:21 -0500 Subject: refactor: update aliases and abbrs --- .config/fish/config.fish | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to '.config/fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index cc44221..ef5756c 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -8,11 +8,22 @@ if status is-interactive # commands to run in interactive sessions can go here fish_vi_key_bindings + # aliases + alias grep='grep --color=auto' + alias neofetch="alsi" + if which bat >/dev/null 2>&1 + alias cat="bat -p" + end + if which eza >/dev/null 2>&1 + alias ls="eza" + end # abbreviations abbr -a S "cd ~/.local/bin && ls" 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" @@ -29,15 +40,6 @@ if status is-interactive abbr -a yt-mp4 "youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'" abbr -a yt-mpv "mpv --ytdl-format=" abbr -a yt-webm "youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'" - # aliases - alias egrep='grep -E' - alias fgrep='grep -F' - alias grep='grep --colour=auto' - alias ls="ls --group-directories-first -h -p --color -F" - alias neofetch="alsi" - if which bat >/dev/null 2>&1 - alias cat="bat -p" - end # less termcap variables (for colored man pages) set -gx LESS_TERMCAP_mb \e'[1;32m' -- cgit v1.2.3