Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 518 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 518 Bytes

sshm

A simple SSH bookmarks script that help remember the history of ssh command.

Install

Just put sshm and sshm-update into /usr/local/bin or somewhere else.

Run commands below to init:

mkdir ~/.sshm
touch ~/.sshm/.data

And add the follow lines to ~/.bashrc or any other shell's rc file:

ssh() {
  /usr/bin/ssh "$@" && sshm-update "$*"
}

Source the rc file or logout/login to make these lines activated.

That's all.

Usage

Run sshm and it will show you enough help messages.