aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rwxr-xr-x.bashrc13
1 files changed, 10 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index dd9ede3..c8d33d8 100755
--- a/.bashrc
+++ b/.bashrc
@@ -16,7 +16,10 @@ then
return
fi
-. "$HOME"/.profile
+if [ -f "$HOME"/.profile ]
+then
+ . "$HOME"/.profile
+fi
alias cls="clear"
BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)"
@@ -32,7 +35,11 @@ alias codium="flatpak run com.vscodium.codium --no-sandbox --enable-features=Use
alias mpv="$(which mpv 2> /dev/null || echo "flatpak run io.mpv.Mpv")"
alias tmux="tmux -2"
-. /usr/share/bash-completion/bash_completion
+if [ -f "/usr/share/bash-completion/bash_completion" ]
+then
+ . /usr/share/bash-completion/bash_completion
+fi
+
for f in "$HOME"/.local/share/bash-completion/*
do
. "$f"
@@ -41,7 +48,7 @@ done
GPG_TTY="$(tty)"
export GPG_TTY
-if [ -n "$(which starship)" ]
+if [ -n "$(which starship 2> /dev/null)" ]
then
eval "$(starship init bash)"
fi