feat: add ssh2

This commit is contained in:
2026-08-04 14:59:54 +08:00
parent 4382de9ddc
commit 8072e344ac
3 changed files with 292 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Inherit ssh-copy-id options and host completions
complete -c ssh2 -w ssh-copy-id
+10
View File
@@ -0,0 +1,10 @@
# ssh-copy-id 后交互保存 SSH Host 别名
function ssh2 --wraps ssh-copy-id --description "Copy SSH key and save host alias"
set -l script_path ~/.dotfile/script/ssh2.sh
if not test -f $script_path
echo "Error: ssh2 script not found at $script_path" >&2
return 1
end
bash $script_path $argv
end