bash_aliases: put bind commands to register prompt_preexec() function next to prompt_preexec() definition
This commit is contained in:
parent
8a25ffb24b
commit
799b4b314d
12
bash_aliases
12
bash_aliases
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user