aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2022-09-18 18:17:48 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2022-09-18 18:17:48 +0000
commit2a53d13112422812fe30d54aac360b2d9dd29f22 (patch)
treed78ec889dcb1d107ce9665a2ede42659409e222a /.bashrc
parent7fe37e1e6554d0818219585e7c7391a28a81225c (diff)
downloaddotfiles-2a53d13112422812fe30d54aac360b2d9dd29f22.tar
dotfiles-2a53d13112422812fe30d54aac360b2d9dd29f22.tar.gz
dotfiles-2a53d13112422812fe30d54aac360b2d9dd29f22.tar.bz2
dotfiles-2a53d13112422812fe30d54aac360b2d9dd29f22.tar.lz
dotfiles-2a53d13112422812fe30d54aac360b2d9dd29f22.tar.xz
dotfiles-2a53d13112422812fe30d54aac360b2d9dd29f22.tar.zst
dotfiles-2a53d13112422812fe30d54aac360b2d9dd29f22.zip
Improve enviorment
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index ef47356..198d6c5 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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