aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index a3adf36..f21cf89 100644
--- a/.bashrc
+++ b/.bashrc
@@ -19,15 +19,15 @@ fi
# Put your fun stuff here.
alias cls="clear"
-BAT="$(which bat || which batcat)"
+BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)"
if [ -n $BAT ]
then
alias cat="$BAT -p"
fi
-alias ls="$(which lsd || "ls -h -F --color=auto --group-directories-first")"
-alias sudo="$(which doas || which sudo || 'su -c')"
+alias ls="$(which lsd 2> /dev/null || echo "ls -h -F --color=auto --group-directories-first")"
+alias sudo="$(which doas 2> /dev/null || which sudo 2> /dev/null || echo 'su -c')"
alias codium="flatpak run com.vscodium.codium --no-sandbox --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias tmux="tmux -2"