Skip to content

Commit

Permalink
Updated for xbar v2.1.16
Browse files Browse the repository at this point in the history
Added Terminal=true
use /bin/zsh
  • Loading branch information
C4Wiz authored Aug 30, 2021
1 parent a9be307 commit 45a8589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Network/ssh.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env bash
#!/bin/zsh
#
# Quickly SSH to your favorite hosts
# The list of hosts are extracted from ~/.ssh/config
#
# <xbar.title>SSH</xbar.title>
# <xbar.version>v1.0</xbar.version>
# <xbar.version>v1.1</xbar.version>
# <xbar.author>Thameera Senanayaka</xbar.author>
# <xbar.author.github>thameera</xbar.author.github>
# <xbar.desc>Quickly SSH to your favorite hosts listed in your ~/.ssh/config file</xbar.desc>
#

echo "ssh"
echo "---"
awk '/^Host / && !/\*/ {print $2" | bash=ssh param1="$2}' ~/.ssh/config
awk '/^Host / && !/\*/ {print $2" | shell=ssh param1="$2 " terminal=true"}' ~/.ssh/config

0 comments on commit 45a8589

Please sign in to comment.