tmux: add resurrect to save/restore pane/window layout
This commit is contained in:
parent
e1160acbe1
commit
2f2a9657c2
47 changed files with 2579 additions and 0 deletions
25
.config/tmux/plugins/resurrect/strategies/mosh-client_default_strategy.sh
Executable file
25
.config/tmux/plugins/resurrect/strategies/mosh-client_default_strategy.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# "mosh-client default strategy"
|
||||
#
|
||||
# Example mosh-client process:
|
||||
# mosh-client -# charm tmux at | 198.199.104.142 60001
|
||||
#
|
||||
# When executed, the above will fail. This strategy handles that.
|
||||
|
||||
ORIGINAL_COMMAND="$1"
|
||||
DIRECTORY="$2"
|
||||
|
||||
mosh_command() {
|
||||
local args="$ORIGINAL_COMMAND"
|
||||
|
||||
args="${args#*-#}"
|
||||
args="${args%|*}"
|
||||
|
||||
echo "mosh $args"
|
||||
}
|
||||
|
||||
main() {
|
||||
echo "$(mosh_command)"
|
||||
}
|
||||
main
|
||||
Loading…
Add table
Add a link
Reference in a new issue