1
0

zsh: aliases and related

This commit is contained in:
2021-12-07 02:46:50 +03:00
parent 95d73f7f64
commit 731471aee7
15 changed files with 66 additions and 35 deletions

View File

@@ -9,3 +9,8 @@ z-history() {
[[ ${@[-1]-} = *[0-9]* ]] && builtin fc -il "$@" || builtin fc -il "$@" 1
fi
}
z-grephist() {
local what=$1 ; shift
z-history -m "*${what}*" "$@"
}