mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-30 04:01:40 -04:00
add zsh h()
This commit is contained in:
parent
c25625ba80
commit
eb22dc0eaa
898 changed files with 145067 additions and 0 deletions
13
shell/zshrc
13
shell/zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue