aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc7
-rw-r--r--.profile2
2 files changed, 5 insertions, 4 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
diff --git a/.profile b/.profile
index 2755d19..31be1bb 100644
--- a/.profile
+++ b/.profile
@@ -22,6 +22,6 @@ XDG_CURRENT_DESKTOP=sway; export XDG_CURRENT_DESKTOP;
XDG_SESSION_DESKTOP=sway; export XDG_SESSION_DESKTOP;
GPG_TTY="$(tty)" export GPG_TTY;
-PATH="$PATH:$HOME/go/bin:$DENO_INSTALL/bin:$BUN_INSTALL/bin";
+PATH="$PATH:$HOME/go/bin:$DENO_INSTALL/bin:$BUN_INSTALL/bin:$HOME/.cargo/bin";