add zsh h()

This commit is contained in:
Mia Steinkirch 2019-06-24 10:48:52 -07:00
parent c25625ba80
commit eb22dc0eaa
898 changed files with 145067 additions and 0 deletions

View file

@ -44,4 +44,17 @@ export CLICOLOR=230
export HISTCONTROL=ignoredups
#####################################################
# FUNCTIONS
#####################################################
function h() {
if [ -z "$*" ]; then
history 1
else
history 1 | egrep --color=auto "$@"
fi
}
source $ZSH/oh-my-zsh.sh