Skip to content

Commit

Permalink
Fixing run_once as per mhmurray
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocc authored Dec 14, 2020
1 parent 4829252 commit 03d13f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bashrc_dispatch
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ fi
# Now dispatch special files
PRF="${HOME}/."

[ -f "${PRF}bashrc_once" ] && [ -z "$BRCD_RANONCE" ] && . "${PRF}bashrc_once" && export BRCD_RANONCE=true
if [ -f "${PRF}bashrc_once" ] && [ -z "$BRCD_RANONCE" ]; then
export BRCD_RANONCE=true
. "${PRF}bashrc_once"
unset BRCD_RANONCE
fi
[ -f "${PRF}bashrc_all" ] && . "${PRF}bashrc_all"
[ -f "${PRF}bashrc_script" ] && shell_is_script && . "${PRF}bashrc_script"
[ -f "${PRF}bashrc_interactive" ] && shell_is_interactive && . "${PRF}bashrc_interactive"
Expand Down

0 comments on commit 03d13f9

Please sign in to comment.