1
0
dotfiles/.config/zsh/lib/history.zsh
2021-04-19 01:00:58 +03:00

12 lines
220 B
Bash

#!/bin/zsh
z-history() {
local list
zparseopts -E l=list
if [[ -n "$list" ]]; then
builtin fc "$@"
else
[[ ${@[-1]-} = *[0-9]* ]] && builtin fc -il "$@" || builtin fc -il "$@" 1
fi
}