You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,12 @@ Replaces the `#H` format and adds a `#U` format option.
6
6
7
7
### Usage
8
8
9
-
-`#H` will be the hostname of your current path. If there is an ssh session opened, the ssh hostname will show instead of the local one.
9
+
-`#H`(`#{hostname}`) will be the hostname of your current path. If there is an ssh session opened, the ssh hostname will show instead of the local one.
10
10
-`#{hostname_short}` will be the short hostname of your current path (up to the first dot). If there is an ssh session opened, the ssh hostname will show instead of the local one.
11
-
-`#U` will show the `whoami` result or the user that logged in an ssh session.
11
+
-`#U`(`#{username}`) will show the `whoami` result or the user that logged in an ssh session.
12
12
-`#{pane_ssh_port}` if an open ssh session will show the connection port, otherwise it will be empty.
13
13
-`#{pane_ssh_connected}` will be set to 1 if the currently selected pane has an active ssh connection. (Useful for `#{?#{pane_ssh_connected},ssh,no-ssh}` which will evaluate to `ssh` if there is an active ssh in the currently selected pane and `no-ssh` otherwise.)
14
+
-`#{pane_ssh_connect}` if an open ssh session will show the connection info in `"username@hostname:port"` format, otherwise it will be empty.
0 commit comments