aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 198d6c5..90e636a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -18,7 +18,13 @@ fi
# Put your fun stuff here.
alias cls="clear"
-alias cat="$(which bat || which batcat || 'cat')"
+BAT="$(which bat || which batcat)"
+
+if [ -n $BAT ]
+then
+ alias cat="$BAT -p"
+fi
+
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"