Skip to content

Commit

Permalink
Merge pull request #56 from rcaloras/add-builtin
Browse files Browse the repository at this point in the history
Add builtin to the front of history to avoid alias
  • Loading branch information
rcaloras authored Sep 24, 2017
2 parents 0211142 + 6996024 commit 130bb4b
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 130bb4b

Please # to comment.