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