feat: add ssh2
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Inherit ssh-copy-id options and host completions
|
||||
complete -c ssh2 -w ssh-copy-id
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user