From 799b4b314d3edc3a73328e3b7efc3bc7087e0967 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 18 Jun 2018 16:46:07 -0400 Subject: [PATCH] bash_aliases: put bind commands to register prompt_preexec() function next to prompt_preexec() definition --- bash_aliases | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bash_aliases b/bash_aliases index fa8477b..b3dbc67 100644 --- a/bash_aliases +++ b/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() {