Stop using login shell, reconfigure bash

This commit is contained in:
Vladan Popovic 2024-10-06 03:28:24 +02:00
parent ac8cccb7c6
commit da7bdbebbd
6 changed files with 32 additions and 40 deletions

View file

@ -9,14 +9,6 @@ function parse_branch {
$scmexe branch 2> /dev/null | awk '/^*/{$1="";sub(/^ /, "");print "("$0")"}'
}
function appendpath {
if ! [[ "$PATH" =~ $1 ]]
then
PATH="$1:$PATH"
fi
export PATH
}
yell() { echo "$0: $*" >&2; }
die() { yell "$*"; exit 1; }
try() { "$@" || die "failed while trying to: $*"; }