added a function instead running the same check and commands in every theme
This commit is contained in:
@@ -497,3 +497,8 @@ function safe_append_prompt_command {
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function _save-and-reload-history() {
|
||||
local autosave=${1:-0}
|
||||
[[ $autosave -eq 1 ]] && history -a && history -c && history -r
|
||||
}
|
||||
Reference in New Issue
Block a user