Skip to content

Instantly share code, notes, and snippets.

@artbikes
Created April 30, 2019 14:44
Show Gist options
  • Save artbikes/4b6dca6d02bc7d67fcc91e6d93babace to your computer and use it in GitHub Desktop.
Save artbikes/4b6dca6d02bc7d67fcc91e6d93babace to your computer and use it in GitHub Desktop.
The history I really want
hist () {
if [ "$#" -gt 0 ]; then
target="$@"
history | grep "${target}" | tail
else
history | tail
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment