This commit is contained in:
Marc Beninca 2025-06-30 00:28:33 +02:00
parent 1e85c8359d
commit b456751468
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -2,24 +2,22 @@
# │ tmux │
# ╰──────╯
# ╭──────┬─────────╮
# │ tmux │ servers │
# ╰──────┴─────────╯
rwx_tmux_server() {
basename "${TMUX}" |
cut \
--delimiter "," \
--fields "1"
}
# ╭──────┬───────╮
# │ tmux │ setup │
# ╰──────┴───────╯
rwx_tmux_setup() {
local file
local file script
file="${HOME}/.tmux.conf"
script="${HOME}/.tmux.sh"
rwx_file_write "${script}" "\
rwx_tmux_server() {
basename \"\${TMUX}\" |
cut \\
--delimiter \",\" \\
--fields \"1\"
}
"
rwx_file_write "${file}" "\
# ╭────────╮
# │ option │
@ -62,7 +60,7 @@ set-option -g set-titles on
# set title to working directory
set-option -g set-titles-string '\
#(rwx_tmux_server)\
#(sh -c \". ${script}; rwx_tmux_server\")\
\
#{session_name}\
\