diff options
| author | kj-sh604 | 2025-02-11 16:42:11 -0500 |
|---|---|---|
| committer | kj-sh604 | 2025-02-11 16:42:11 -0500 |
| commit | 1c6c2a72e4a3184eb8473cd11ca3ded8046a6ea8 (patch) | |
| tree | 366aa87381c332df59c23e06837c0156ee31da1f | |
| parent | a4c80906301cdf15821b5c3b6c67524e61607914 (diff) | |
refactor: make `alsi` a conditional alias
| -rw-r--r-- | .config/fish/config.fish | 4 | ||||
| -rw-r--r-- | .config/shell/.zshrc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish index bf74e76..5a4ae75 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -10,10 +10,12 @@ if status is-interactive # aliases alias grep='grep --color=auto' - alias neofetch="alsi" if which eza >/dev/null 2>&1 alias ls="eza" end + if which alsi >/dev/null 2>&1 + alias neofetch="alsi" + end # abbreviations abbr -a S "cd ~/.local/bin && ls" abbr -a c "cal" diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc index 2a267a7..b50e331 100644 --- a/.config/shell/.zshrc +++ b/.config/shell/.zshrc @@ -28,6 +28,7 @@ SAVEHIST=9999999 # aliases # conditionally alias alternative applications if installed command which eza >/dev/null 2>&1 && alias ls="eza" + command which alsi >/dev/null 2>&1 && alias neofetch="alsi" # personal aliases # alias echo=(command which echo) @@ -41,7 +42,6 @@ SAVEHIST=9999999 alias grep='grep --color=auto' alias ks="killall screen" alias lgit="lazygit" - alias neofetch="alsi" alias p="paru" alias pu="paru -Syu --noconfirm" alias s="screen" |
