first commit
This commit is contained in:
commit
0610f4aeab
130 changed files with 9897 additions and 0 deletions
13
fn/-z4h-with-local-history
Normal file
13
fn/-z4h-with-local-history
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
eval "$_z4h_opt"
|
||||
|
||||
local last=$LASTWIDGET
|
||||
zle .set-local-history -n $1
|
||||
shift
|
||||
{
|
||||
() { local -h LASTWIDGET=$last; "$@" } "$@"
|
||||
} always {
|
||||
zle .set-local-history -n 0
|
||||
}
|
||||
return 0
|
Loading…
Add table
Add a link
Reference in a new issue