Added legacy alias reload: https://github.com/Bash-it/bash-it/issues/1120#issuecomment-354376835
parent
48e6888a38
commit
b288ecbd27
12
bash_it.sh
12
bash_it.sh
|
|
@ -102,5 +102,17 @@ then
|
|||
. "$HOME/.jekyllconfig"
|
||||
fi
|
||||
|
||||
# BASH_IT_RELOAD_LEGACY is set.
|
||||
if ! command -v reload &>/dev/null && [ -n "$BASH_IT_RELOAD_LEGACY" ]; then
|
||||
case $OSTYPE in
|
||||
darwin*)
|
||||
alias reload='source ~/.bash_profile'
|
||||
;;
|
||||
*)
|
||||
alias reload='source ~/.bashrc'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Disable trap DEBUG on subshells - https://github.com/Bash-it/bash-it/pull/1040
|
||||
set +T
|
||||
|
|
|
|||
|
|
@ -48,5 +48,8 @@ export SCM_CHECK=true
|
|||
# after enabling or disabling aliases, plugins, and completions.
|
||||
# export BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1
|
||||
|
||||
# Uncomment this to make Bash-it create alias reload.
|
||||
# export BASH_IT_RELOAD_LEGACY=1
|
||||
|
||||
# Load Bash It
|
||||
source "$BASH_IT"/bash_it.sh
|
||||
|
|
|
|||
Loading…
Reference in New Issue