Stop using login shell, reconfigure bash
This commit is contained in:
parent
ac8cccb7c6
commit
da7bdbebbd
6 changed files with 32 additions and 40 deletions
|
|
@ -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: $*"; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue