Skip to content

Commit

Permalink
Add script and gif
Browse files Browse the repository at this point in the history
Add script and gif
  • Loading branch information
pshef authored Feb 21, 2023
1 parent d410a7d commit 4b27e64
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sshme
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

var=$(awk '{if(/Host /) print $2}' $HOME/.ssh/config)

gum style \
--foreground 9 --border 212 --border double \
--align center --width 50 --margin "1 2" --padding "2 4" \
'What host do you want to ssh to?'

host=$(gum choose $var)
confirm=$(gum confirm)

gum spin --spinner hamburger --title "Connecting to SSH host..." -- sleep 3

ssh $host
Binary file added sshme.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b27e64

Please sign in to comment.