mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
7 lines
216 B
Fish
7 lines
216 B
Fish
|
function __history_completions
|
||
|
set -l tokens (commandline --current-process --tokenize)
|
||
|
history --prefix (commandline) | string replace -r \^$tokens[1]\\s\* ""
|
||
|
end
|
||
|
|
||
|
complete -k -c j -a '(__history_completions)' -f
|