diff --git a/sh/tmux.sh b/sh/tmux.sh index 2b7d9bb..d940ff2 100644 --- a/sh/tmux.sh +++ b/sh/tmux.sh @@ -8,8 +8,13 @@ rwx_tmux_setup() { local file script - file="${HOME}/.tmux.conf" - script="${HOME}/.tmux.sh" + if rwx_root; then + file="/etc/tmux.conf" + script="/etc/tmux.sh" + else + file="${HOME}/.tmux.conf" + script="${HOME}/.tmux.sh" + fi rwx_file_write "${script}" "\ rwx_tmux_server() { basename \"\${TMUX}\" |