mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 06:03:49 +08:00
37e7e90bff
Add completions for ssh-copy-id.
Refactored __ssh_history_completions into its own file for autoloading across
completions.
(cherry picked from commit 45b6622986
)
Conflicts:
CHANGELOG.rst
4 lines
190 B
Fish
4 lines
190 B
Fish
function __ssh_history_completions -d "Retrieve `user@host` entries from history"
|
|
history --prefix ssh --max=100 | string replace -rf '.* ([A-Za-z0-9._:-]+@[A-Za-z0-9._:-]+).*' '$1'
|
|
end
|