Skip to content

Commit

Permalink
Add builtin to the front of history to avoid alias
Browse files Browse the repository at this point in the history
- Addresses #55
  • Loading branch information
rcaloras committed Sep 23, 2017
1 parent 578c03f commit 6996024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash-preexec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6996024

Please sign in to comment.