[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Question Regarding Why Hydra For SSH Connections Isn't Working
From: |
Samuel Banya |
Subject: |
Question Regarding Why Hydra For SSH Connections Isn't Working |
Date: |
Mon, 07 Feb 2022 16:56:00 -0500 |
User-agent: |
Cyrus-JMAP/3.5.0-alpha0-4748-g31a5b5f50e-fm-cal2020-20220204.001-g31a5b5f5 |
Hey there,
*
*
*Can anyone help me figure out why my Hydra isn't working:*
` (if (equal (system-name) '("notestation" "fossastation"))`
` ;; Create separate connection based functions to later call within the
'hydra-connect' hydra:`
` (defun ssh-into-musimatic-sam ()`
` (interactive)`
` (find-file "/ssh:sam@musimatic.xyz:/var/www/musimatic"))`
` (defun ssh-into-musimatic-git ()`
` (interactive)`
` (find-file "/ssh:git@musimatic.xyz:/var/www/musimatic")) `
` (defun ssh-into-musimatic-root ()`
` (interactive)`
` (find-file "/ssh:root@musimatic.xyz:/var/www/musimatic"))`
` (defun ssh-into-sambanya-sam ()`
` (interactive)`
` (find-file "/ssh:sam@sambanya.com:/var/www/sambanya"))`
` (defun ssh-into-sambanya-root ()`
` (interactive)`
` (find-file "/ssh:root@sambanya.com:/var/www/sambanya"))`
` (defun ssh-into-fedoraserver-sam ()`
` (interactive)`
` (find-file "/ssh:sam@fedoraserver:/media/REDHDD"))`
` (defhydra hydra-connect (:color pink`
` :hint nil)`
` "`
` ^Connect^`
` ^^^^^^^^^^-----------------------------`
` _a_: connect to musimatic.xyz as sam user`
` _b_: connect to musimatic.xyz as git user`
` _c_: connect to musimatic.xyz as root user`
` _d_: connect to sambanya.com as sam user`
` _e_: connect to sambanya.com as root user`
` _f_: connect to fedoraserver as sam user`
` _q_: quit`
` "`
` ("a" ssh-into-musimatic-sam)`
` ("b" ssh-into-musimatic-git) `
` ("c" ssh-into-musimatic-root)`
` ("d" ssh-into-sambanya-sam)`
` ("e" ssh-into-sambanya-root)`
` ("f" ssh-into-fedoraserver-sam)`
` ("q" nil))`
` (global-set-key (kbd "M-n") 'hydra-connect/body))`
`*CONTINUED:*`
`*When I try to run the above hydra, and use the 'a' key, I get the following
message:*`
Wrong type argument: commandp, ssh-into-musimatic-sam
`**`
`Thanks!`
`Sam`
- Question Regarding Why Hydra For SSH Connections Isn't Working,
Samuel Banya <=