we can make .profile a bit shorter

This commit is contained in:
creme 2020-01-04 21:53:25 +01:00
parent 02bb2b3d2e
commit e11d583d8c
Signed by untrusted user: creme
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 4 additions and 9 deletions

View File

@ -11,20 +11,14 @@
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
## defaults ##
@ -38,6 +32,7 @@ export BBJ_USER=$USER
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
if [[ ! $TERM =~ screen ]] || [[ ! $TMUX =~ tmux ]]; then
_byobu_sourced=1 . /usr/bin/byobu-launch 2>/dev/null || true
# when we use `byobu-disable` we have an emtpy if..