bash_aliases: put bind commands to register prompt_preexec() function next to prompt_preexec() definition
This commit is contained in:
1 parent
8a25ffb24b
commit
799b4b314d
1 file changed
+6
-6
+6
-6
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user