forked from envs/skel
we can make .profile a bit shorter
This commit is contained in:
parent
02bb2b3d2e
commit
e11d583d8c
13
.profile
13
.profile
|
@ -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..
|
||||
|
|
Loading…
Reference in New Issue