From 6996024e887d12d33ce215e2d9ae77c75de59001 Mon Sep 17 00:00:00 2001 From: Ryan Caloras Date: Sat, 23 Sep 2017 11:48:28 -0400 Subject: [PATCH] Add builtin to the front of history to avoid alias - Addresses #55 --- bash-preexec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-preexec.sh b/bash-preexec.sh index b3c2ff3..02919ef 100644 --- a/bash-preexec.sh +++ b/bash-preexec.sh @@ -172,7 +172,7 @@ __bp_preexec_invoke_exec() { fi local this_command - this_command=$(HISTTIMEFORMAT= history 1 | { read -r _ this_command; echo "$this_command"; }) + this_command=$(HISTTIMEFORMAT= builtin history 1 | { read -r _ this_command; echo "$this_command"; }) # Sanity check to make sure we have something to invoke our function with. if [[ -z "$this_command" ]]; then