diff --git a/sshm.bash b/sshm.bash index 1ba53b3..a2e8d98 100755 --- a/sshm.bash +++ b/sshm.bash @@ -43,7 +43,7 @@ EOF ssh_manager_list() { local config_file=~/.ssh/config echo -e "\nList of SSH hosts:" - grep -E '^Host ' "$config_file" | awk '{print $2}' | grep -v '^#' | nl + grep -E '^Host ' "$config_file" | awk '{print $2}' | grep -v '^#' | sort | nl echo -ne "\nEnter the number or name of the host (or press Enter to exit): " read host