aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-30 21:58:32 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-30 21:58:32 -0700
commit28fd1a4c5dd27b3438d095435eec1d5ffb24491c (patch)
tree227fd34177b4dc97ccb144b8dd131ffde0eda24c /share
parentbd895aa76c318ab3bc1b2d7d43d05fd7a2ccdf84 (diff)
parent1177daecded5b8dac03097801d4d6111330e1cff (diff)
Merge branch 'master' of github.com:fish-shell/fish-shell
Diffstat (limited to 'share')
-rw-r--r--share/functions/__fish_print_hostnames.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_print_hostnames.fish b/share/functions/__fish_print_hostnames.fish
index dd62b5c8..1e9f8143 100644
--- a/share/functions/__fish_print_hostnames.fish
+++ b/share/functions/__fish_print_hostnames.fish
@@ -14,7 +14,7 @@ function __fish_print_hostnames -d "Print a list of known hostnames"
# Print hosts with known ssh keys
# Does not match hostnames with @directives specified
- sgrep -Eoh '^[^#@|, ]*' ~/.ssh/known_hosts{,2} ^/dev/null
+ sgrep -Eoh '^[^#@|, ]*' ~/.ssh/known_hosts{,2} ^/dev/null | sed -E 's/^\[([^]]+)\]:([0-9]+)$/\1/'
# Print hosts from system wide ssh configuration file
if [ -e /etc/ssh/ssh_config ]