You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
function peco_select_history
|
|
if test (count $argv) = 0
|
|
set peco_flags --layout=bottom-up
|
|
else
|
|
set peco_flags --layout=bottom-up --query "$argv"
|
|
end
|
|
|
|
history|peco $peco_flags|read foo
|
|
|
|
if [ $foo ]
|
|
commandline $foo
|
|
else
|
|
commandline ''
|
|
end
|
|
end
|