fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian Boehmcompletions/ssh: Don't read ":" from historical hostseddb26d49

master
292 B5 linesraw
1# localization: tier3
2function __ssh_history_completions -d "Retrieve `user@host` entries from history"
3    # Accept the typical hostname/ip chars, but no ":" at the end
4    history --prefix ssh --max=100 | string replace -rf '.* ([A-Za-z0-9._:-]+@[A-Za-z0-9._:-]*[A-Za-z0-9._-]).*' '$1'
5end