Corrected bug in reloader logic
This commit is contained in:
parent
4fcea2d589
commit
2f37ec5534
1 changed files with 3 additions and 3 deletions
|
@ -76,9 +76,9 @@ function __rebuild_bashrcd() {
|
|||
fi
|
||||
}
|
||||
|
||||
function __bashrc_reload() {
|
||||
export BASHRC_RELOAD_COUNTER=$((${BASHRC_RELOAD_COUNTER:-0}+1))
|
||||
if [[ $BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: $BASHRC_RELOAD_COUNTER"; fi
|
||||
function -reload-bashrc() {
|
||||
export BASHRC_RELOAD_COUNTER=\$((\${BASHRC_RELOAD_COUNTER:-0}+1))
|
||||
if [[ \$BASHRC_RELOAD_COUNTER -gt 1 ]]; then echo "reload count: \$BASHRC_RELOAD_COUNTER"; fi
|
||||
source ~/.bashrc
|
||||
}
|
||||
alias __bashrc_reload='-reload-bashrc'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue