bash_aliases: put bind commands to register prompt_preexec() function next to prompt_preexec() definition

This commit is contained in:
Josh Holtrop 2018-06-18 16:46:07 -04:00
parent 8a25ffb24b
commit 799b4b314d

View File

@ -36,6 +36,12 @@ function ps-color() {
# false
#}
# Catch an enter keypress and call our preexec function.
#bind -x '"\M-\C-h1": prompt_preexec'
#bind '"\M-\C-h2": accept-line'
#bind '"\C-j": "\M-\C-h1\M-\C-h2"'
#bind '"\C-m": "\M-\C-h1\M-\C-h2"'
eval "
function prompt_ps1_exit_status()
{
@ -92,12 +98,6 @@ function prompt_ps1_svn_branch()
fi
}
# Catch an enter keypress and call our preexec function.
#bind -x '"\M-\C-h1": prompt_preexec'
#bind '"\M-\C-h2": accept-line'
#bind '"\C-j": "\M-\C-h1\M-\C-h2"'
#bind '"\C-m": "\M-\C-h1\M-\C-h2"'
if [[ "${USER}" == "root" ]]; then
eval "function prompt_command_set_ps1()
{