From dbc68ef435c621503a1bd304bc81690ea37cd623 Mon Sep 17 00:00:00 2001 From: eooce <142894633+eooce@users.noreply.github.com> Date: Tue, 11 Jun 2024 10:54:27 +0800 Subject: [PATCH] Update ssh_tool.sh --- ssh_tool.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh_tool.sh b/ssh_tool.sh index 3eb05c5a..4f559c3f 100644 --- a/ssh_tool.sh +++ b/ssh_tool.sh @@ -20,7 +20,7 @@ add_alias() { for alias_name in "${alias_names[@]}"; do if ! grep -q "alias $alias_name=" "$config_file"; then echo "Adding alias $alias_name to $config_file" - echo "alias $alias_name='cd ~ && ./ssh_tool.sh'" >> "$config_file" + echo "alias $alias_name='curl -fsSL https://raw.githubusercontent.com/eooce/ssh_tool/main/ssh_tool.sh && chmod +x ssh_tool.sh && ./ssh_tool.sh'" >> "$config_file" fi done . "$config_file"