mirror of
https://github.com/stumpwm/stumpwm-contrib.git
synced 2026-09-10 07:26:25 -04:00
Unfortently, config may contains wildcard based domains which makes it usless for this module, but from another hand the known_hosts is good source for known connections. Thus, tramp uses the same idea.
959 B
959 B
Requirements
-
cl-ppcre
Install cl-ppcre from the REPL:
(ql:quickload :cl-ppcre)
Usage
This simple plugin parses your ssh config file and opens a connection using a teminal emulator.
Put the following in your ~/.stumpwmrc
(load-module "swm-ssh")
And use it either by calling the appropriate function directly (swm-ssh-menu)
or by defining a keybind (example <prefix> C-a) in your ~/.stumpwmrc
(define-key *root-map* (kbd "C-a") "swm-ssh-menu")
Variables
swm-ssh-default-term
Default terminal to open an ssh connection is urxvtc. To change it, use
(setq swm-ssh:*swm-ssh-default-term* "xterm")
swm-ssh-known-host-path
Path to thee list of know host bz SSH client. Defaults to ~/.ssh/known_hosts.
Change it with
(setq swm-ssh:*swm-ssh-known-hosts-path* "/path/to/ssh/known_hosts")