aboutsummaryrefslogtreecommitdiff
path: root/.config/fish
diff options
context:
space:
mode:
authorkj_sh6042025-12-25 22:11:57 -0500
committerkj_sh6042025-12-25 22:11:57 -0500
commit1e8ccdb2a32eb203a2b60757212bdf97190e19f7 (patch)
tree59b565c96ace64b99e3111f6dbdd3c1afa2c13eb /.config/fish
parentac538b363641f32f2c69f15627887e6cd46806a6 (diff)
refactor: make sure zsh and fish have the same abbrs
Diffstat (limited to '.config/fish')
-rw-r--r--.config/fish/config.fish7
1 files changed, 3 insertions, 4 deletions
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]'"