-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor SSH configuration functions and add new features
- Add check for required commands "gum" and "argc" - Modify the `select_many` function to use custom prefixes for selected and unselected items - Add a new function `select_all` - Modify the `add` function to include a check for existing hostnames in $sshfile and to edit the hostname if it exists - Modify the `remove` function to include a check for existing hostnames in $sshfile and to remove the hostname from $sshfile if it exists - Add a new function `edit` to edit a hostname - Add a new function `choose` to select one/many/all hostnames - Modify the `list` function to display a formatted table of hostnames - Add a new function `ssh` to create a ssh config from hosts - Modify the `.profile` file to export new environment variables for gum confirm color settings
- Loading branch information
Showing
2 changed files
with
128 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters