From ff1dfb49ab1eec7e9412261c56bcdb69cbe06ce1 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 3 Aug 2024 11:40:07 +0200 Subject: silence warnings --- .bashrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '.bashrc') 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 -- cgit v1.2.3