diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,3 +1,4 @@ +#!/usr/bin/env bash # /etc/skel/.bashrc # # This file is sourced by all *interactive* bash shells on startup, @@ -17,9 +18,9 @@ fi # Put your fun stuff here. alias cls="clear" -alias cat="bat -p" -alias ls="lsd" -alias sudo="doas" +alias cat="$(which bat || which batcat || 'cat')" +alias ls="$(which lsd || 'ls')" +alias sudo="$(which doas || which sudo || 'su -c')" alias codium="flatpak run com.vscodium.codium --no-sandbox --enable-features=UseOzonePlatform --ozone-platform=wayland" for f in $HOME/.local/share/bash-completion/*; do |