ssh-iterm2-badge

command module
v0.0.0-...-f49a5d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: MIT Imports: 11 Imported by: 0

README

ssh-iterm2-badge

The purpose of this program is to display the hostname of an ssh connection as a badge in iTerm2.

WARNING: this is a gigantic hack and I don't really recommend using it.

For an explanation of how this program works you can check my blog post about it here.

Requirements

  • macOS
  • iTerm2
  • macOS' builtin OpenSSH

Installation

To install this program from its source code you need to have the Go runtime installed; then you can use go install as usual:

go install github.com/piger/ssh-iterm2-badge@latest

Then you need to configure OpenSSH to use this program as a LocalCommand; edit ~/.ssh/config and add something like this:

Host *
  PermitLocalCommand yes
  LocalCommand ssh-iterm2-badge %h

You just need to ensure that no other Host directive is setting another LocalCommand or disabling PermitLocalCommand before this configuration block is reached.

Documentation

Rendered for darwin/amd64
The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL