aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-10-08 16:50:21 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2022-10-08 16:50:21 +0000
commitc3e28c7ffcf1dc68fef04f541b1302df05d8e30c (patch)
tree3d786ba8dbc3ab280c2ce088c1541f522cd46663 /.bashrc
parent2143dee6dc9d60d144537d64500abc0f62782ad9 (diff)
downloaddotfiles-c3e28c7ffcf1dc68fef04f541b1302df05d8e30c.tar
dotfiles-c3e28c7ffcf1dc68fef04f541b1302df05d8e30c.tar.gz
dotfiles-c3e28c7ffcf1dc68fef04f541b1302df05d8e30c.tar.bz2
dotfiles-c3e28c7ffcf1dc68fef04f541b1302df05d8e30c.tar.lz
dotfiles-c3e28c7ffcf1dc68fef04f541b1302df05d8e30c.tar.xz
dotfiles-c3e28c7ffcf1dc68fef04f541b1302df05d8e30c.tar.zst
dotfiles-c3e28c7ffcf1dc68fef04f541b1302df05d8e30c.zip
Some shell changes and improvements
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"