Skip to content

Commit

Permalink
re-order code in .bashrc so it makes more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
sinewalker committed Jul 17, 2019
1 parent 3cc282c commit a5315ce
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions link/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ type -p usage && return
# Source system global definitions
test -f /etc/bashrc && source /etc/bashrc

# Where the magic happens
export DOTFILES=~/.dotfiles
export BASH_MODULES=${DOTFILES}/source

PATH=${DOTFILES}/bin:${PATH}
export PATH

# Unless in POSIX mode, load the rest of the Dotfiles bash modules into the
# environment. (POSIX will fail)
if kill -l|grep SIG &> /dev/null; then #is not POSIX?
source ${BASH_MODULES}/00_modules.sh
__bootstrap_modules
# Where the magic happens
export DOTFILES=~/.dotfiles
export BASH_MODULES=${DOTFILES}/source

PATH=${DOTFILES}/bin:${PATH}
export PATH
source ${BASH_MODULES}/00_modules.sh
__bootstrap_modules
fi

1 comment on commit a5315ce

@sinewalker
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue #50

Please sign in to comment.