From 6dafca656063ae12c97b28c84a0777a4bbabbfd7 Mon Sep 17 00:00:00 2001 From: greymd Date: Mon, 6 May 2019 21:27:39 +0100 Subject: [PATCH 1/2] Use /tmp not /etc --- bin/xpanes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xpanes b/bin/xpanes index 4d87d31..747cd84 100755 --- a/bin/xpanes +++ b/bin/xpanes @@ -54,7 +54,7 @@ readonly XP_ABS_THIS_FILE_NAME="${XP_THIS_DIR}/${XP_THIS_FILE_NAME}" # Prevent cache directory being created under root / directory in any case. # This is quite rare case (but it can be happened). -readonly XP_USER_HOME="${HOME:-/etc}" +readonly XP_USER_HOME="${HOME:-/tmp}" # Basically xpanes follows XDG Base Direcotry Specification. # https://specifications.freedesktop.org/basedir-spec/basedir-spec-0.6.html From d7af8402d2a08a82631414528288fa6cc0efaf61 Mon Sep 17 00:00:00 2001 From: greymd Date: Mon, 6 May 2019 21:29:08 +0100 Subject: [PATCH 2/2] [skip ci] Update man page --- man/create.sh | 2 +- man/man.md | 38 ++++++++++++++++++++++---------------- man/xpanes.1 | 38 ++++++++++++++++++++++---------------- 3 files changed, 45 insertions(+), 33 deletions(-) diff --git a/man/create.sh b/man/create.sh index 9d37c69..3117203 100755 --- a/man/create.sh +++ b/man/create.sh @@ -4,4 +4,4 @@ # Use md2man (https://github.com/sunaku/md2man) to generate man file like this. # Replace 'BOX DRAWINGS LIGHT VERTICAL' (U+2502) to Pipe 'VERTICAL LINE' (U+007C) # Because of md2man's bug, Pipe may be replaced to another character. -md2man-roff man.md | tr $'\xe2\x94\x82' $'\x7c' > xpanes.1 +md2man-roff man.md | sed "s/"$'\xe2\x94\x82'"/"$'\x7c'"/g" > xpanes.1 diff --git a/man/man.md b/man/man.md index 27011ac..cf11b02 100644 --- a/man/man.md +++ b/man/man.md @@ -147,6 +147,12 @@ SHELL VARIABLES See *FORMATS* section in tmux(1) for further details. Default value is `bottom`. +`TMUX_XPANES_PANE_DEAD_MESSAGE` + It defines the message that displayed when a process exits with `-s` option enabled. + + Default value is + `\033[41m\033[4m\033[30m Pane is dead: Press [Enter] to exit... \033[0m\033[39m\033[49m`. + MODES ------ @@ -307,22 +313,22 @@ EXAMPLES `xpanes` --ssh myuser1@host1 myuser2@host2 - +-----------------------------------------------+------------------------------------------------+ - │$ ssh -o StrictHostKeyChecking=no myuser@host1 │ $ ssh -o StrictHostKeyChecking=no myuser@host2 │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - │ │ │ - +-----------------------------------------------+------------------------------------------------+ + +-------------------------------+-------------------------------+ + │$ ssh -o StrictHostKeyChecking │$ ssh -o StrictHostKeyChecking │ + │=no myuser@host1 │=no myuser@host2 │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + │ │ │ + +-------------------------------+-------------------------------+ #### Create new panes on existing window diff --git a/man/xpanes.1 b/man/xpanes.1 index 783aefb..16232c1 100644 --- a/man/xpanes.1 +++ b/man/xpanes.1 @@ -151,6 +151,12 @@ See \fIFORMATS\fP section in .BR tmux (1) for further details. Default value is \fB\fCbottom\fR\&. +.TP +\fB\fCTMUX_XPANES_PANE_DEAD_MESSAGE\fR +It defines the message that displayed when a process exits with \fB\fC\-s\fR option enabled. +.IP +Default value is +\fB\fC\\033[41m\\033[4m\\033[30m Pane is dead: Press [Enter] to exit... \\033[0m\\033[39m\\033[49m\fR\&. .SH MODES .SS [Normal mode1] Outside of tmux session. .PP @@ -332,22 +338,22 @@ Each line provided by standard input is corresponding to the each pane's command .PP .RS .nf -+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ -|$ ssh \-o StrictHostKeyChecking=no myuser@host1 | $ ssh \-o StrictHostKeyChecking=no myuser@host2 | -| | | -| | | -| | | -| | | -| | | -| | | -| | | -| | | -| | | -| | | -| | | -| | | -| | | -+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ ++\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ +|$ ssh \-o StrictHostKeyChecking |$ ssh \-o StrictHostKeyChecking | +|=no myuser@host1 |=no myuser@host2 | +| | | +| | | +| | | +| | | +| | | +| | | +| | | +| | | +| | | +| | | +| | | +| | | ++\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ .fi .RE .SS Create new panes on existing window