fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
33a9659cd
master
1function __history_completions --argument-names limit 2if string match -q"" --" $limit " 3set limit25 4end 5 6set -l tokens( commandline --current-process --tokens-expanded) 7history --prefix( commandline ) | string replace -r\^ $tokens [ 1 ] \\ s\* "" | head -n$limit 8end 9 10# erase the stock autojump completions, which are no longer needed with this 11complete -c j -e 12complete -k -c j -a'(__history_completions 25)' -f