changeset 737:002d6aa2d76e

[tmux] Remove legacy configs
author nanaya <me@nanaya.net>
date Thu, 09 Jan 2025 03:16:29 +0900
parents 3281fed2e242
children 687d9ee4a5c9
files rc/bashrc rc/cshrc rc/shellinit-posix rc/tmux-1.3.conf rc/tmux-1.4.conf rc/tmux-1.9.conf rc/tmux-2.2.conf rc/tmux-2.9.conf rc/tmux.conf setup
diffstat 10 files changed, 26 insertions(+), 155 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Thu Jan 09 03:13:02 2025 +0900
+++ b/rc/bashrc	Thu Jan 09 03:16:29 2025 +0900
@@ -279,25 +279,6 @@
   alias 0pp="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=@-'"
 fi
 
-if command -v tmux > /dev/null 2>&1; then
-  case "${_os}" in
-  OpenBSD)
-      _tmux_conf_ver=2.9
-  ;;
-  *)
-    case "$(tmux -V 2> /dev/null)" in
-    "tmux 2.9"|"tmux 2.9"[a-z]|"tmux "[3-9].[0-9]|"tmux "[3-9].[0-9][a-z]|"tmux "[1-9][0-9].[0-9]|"tmux "[1-9][0-9].[0-9][a-z]|"tmux next-"*) _tmux_conf_ver=2.9;;
-    "tmux 2."[2-8]) _tmux_conf_ver=2.2;;
-    "tmux 1.9"|"tmux 2."[0-1]) _tmux_conf_ver=1.9;;
-    "tmux 1."[4-8]) _tmux_conf_ver=1.4;;
-    *) _tmux_conf_ver=1.3;;
-    esac
-  ;;
-  esac
-  alias tmux="tmux -f '""${HOME}""/.tmux-""${_tmux_conf_ver}"".conf'"
-  unset _tmux_conf_ver
-fi
-
 unset _os
 unset _uid
 unset i
--- a/rc/cshrc	Thu Jan 09 03:13:02 2025 +0900
+++ b/rc/cshrc	Thu Jan 09 03:16:29 2025 +0900
@@ -49,7 +49,6 @@
 alias ll ls -lA
 alias ls ls -F
 alias rm rm -i
-alias tmux tmux -f ~/.tmux-1.3.conf
 
 if ($?prompt) then
   set gnuls_opts="--color=auto --group-directories-first -F"
--- a/rc/shellinit-posix	Thu Jan 09 03:13:02 2025 +0900
+++ b/rc/shellinit-posix	Thu Jan 09 03:16:29 2025 +0900
@@ -9,24 +9,6 @@
 export LC_COLLATE=C
 export LC_MESSAGES=C
 
-if command -v tmux > /dev/null 2>&1; then
-  case "${_os}" in
-  OpenBSD)
-    # FIXME: OpenBSD version check
-    _tmux_conf_ver=1.9
-  ;;
-  *)
-    case "$(tmux -V 2> /dev/null)" in
-    "tmux 1."[1-9][0-9]*|"tmux 1.9"*) _tmux_conf_ver=1.9;;
-    "tmux 1."[4-8]*) _tmux_conf_ver=1.4;;
-    *) _tmux_conf_ver=1.3;;
-    esac
-  ;;
-  esac
-  alias tmux="tmux -f '""${HOME}""/.tmux-""${_tmux_conf_ver}"".conf'"
-  unset _tmux_conf_ver
-fi
-
 if command -v vim > /dev/null 2>&1; then
   alias vi=vim
   export EDITOR=vim
--- a/rc/tmux-1.3.conf	Thu Jan 09 03:13:02 2025 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-set -g terminal-overrides '*:acsc@'
-
-set -g repeat-time 0
-set -g status-bg cyan
-set -g status-fg black
-
-set -g status-left '#[bg=white,fg=black] #S #[default] '
-
-set -g status-right '#[bg=white,fg=black] #H #[bg=black,fg=white] %b-%d %H:%M '
-
-set -g status-utf8 on
-setw -g utf8 on
-
-set -g pane-active-border-fg cyan
-
-set -g set-titles on
-set -g set-titles-string '[#S] #I:#W #T'
-
-setw -g window-status-current-bg black
-setw -g window-status-current-fg white
--- a/rc/tmux-1.4.conf	Thu Jan 09 03:13:02 2025 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-set -g repeat-time 0
-set -g status-bg cyan
-set -g status-fg black
-
-set -g status-left '#[bg=white,fg=black] #S #[default] '
-
-set -g status-right '#[bg=white,fg=black] #H #[bg=black,fg=white] %b-%d %H:%M '
-
-set -g status-utf8 on
-setw -g utf8 on
-
-set -g pane-active-border-fg cyan
-
-set -g set-titles on
-set -g set-titles-string '[#S] #I:#W #T'
-
-setw -g window-status-current-bg black
-setw -g window-status-current-fg white
--- a/rc/tmux-1.9.conf	Thu Jan 09 03:13:02 2025 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-set -g repeat-time 0
-set -g status-bg cyan
-set -g status-fg black
-
-set -g status-left '#[bg=white,fg=black] #S #[default] '
-
-set -g status-right '#[bg=white,fg=black] #H #[bg=black,fg=white] %b-%d %H:%M '
-
-set -g status-utf8 on
-setw -g utf8 on
-
-set -g pane-active-border-fg cyan
-
-set -g set-titles on
-set -g set-titles-string '[#S] #I:#W #T'
-
-setw -g window-status-current-bg black
-setw -g window-status-current-fg white
-
-bind-key c new-window -c "#{pane_current_path}"
-bind-key '"' split-window -c "#{pane_current_path}"
-bind-key % split-window -h -c "#{pane_current_path}"
--- a/rc/tmux-2.2.conf	Thu Jan 09 03:13:02 2025 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-set -g repeat-time 0
-set -g status-bg cyan
-set -g status-fg black
-
-set -g status-left '#[bg=white,fg=black] #S #[default] '
-
-set -g status-right '#[bg=white,fg=black] #H #[bg=black,fg=white] %b-%d %H:%M '
-
-set -g pane-active-border-fg cyan
-
-set -g set-titles on
-set -g set-titles-string '[#S] #I:#W #T'
-
-set -g escape-time 0
-set -g history-limit 10000
-
-setw -g window-status-current-bg black
-setw -g window-status-current-fg white
-
-bind-key c new-window -c "#{pane_current_path}"
-bind-key '"' split-window -c "#{pane_current_path}"
-bind-key % split-window -h -c "#{pane_current_path}"
--- a/rc/tmux-2.9.conf	Thu Jan 09 03:13:02 2025 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-set -g repeat-time 0
-%if "#{==:${TMUX_STATUS_BG},}"
-    set -g status-bg cyan
-%else
-    set -g status-bg "${TMUX_STATUS_BG}"
-%endif
-set -g status-fg black
-
-set -g status-left '#[bg=white,fg=black] #S #[default] '
-
-set -g status-right '#[bg=white,fg=black] #H #[bg=black,fg=white] %b-%d %H:%M '
-
-set -g pane-active-border "fg=cyan"
-
-set -g set-titles on
-set -g set-titles-string '[#S] #I:#W #T'
-
-set -g escape-time 0
-set -g history-limit 10000
-
-setw -g window-status-current-style "bg=black fg=white"
-
-bind-key c new-window -c "#{pane_current_path}"
-bind-key '"' split-window -c "#{pane_current_path}"
-bind-key % split-window -h -c "#{pane_current_path}"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rc/tmux.conf	Thu Jan 09 03:16:29 2025 +0900
@@ -0,0 +1,25 @@
+set -g repeat-time 0
+%if "#{==:${TMUX_STATUS_BG},}"
+    set -g status-bg cyan
+%else
+    set -g status-bg "${TMUX_STATUS_BG}"
+%endif
+set -g status-fg black
+
+set -g status-left '#[bg=white,fg=black] #S #[default] '
+
+set -g status-right '#[bg=white,fg=black] #H #[bg=black,fg=white] %b-%d %H:%M '
+
+set -g pane-active-border "fg=cyan"
+
+set -g set-titles on
+set -g set-titles-string '[#S] #I:#W #T'
+
+set -g escape-time 0
+set -g history-limit 10000
+
+setw -g window-status-current-style "bg=black fg=white"
+
+bind-key c new-window -c "#{pane_current_path}"
+bind-key '"' split-window -c "#{pane_current_path}"
+bind-key % split-window -h -c "#{pane_current_path}"
--- a/setup	Thu Jan 09 03:13:02 2025 +0900
+++ b/setup	Thu Jan 09 03:16:29 2025 +0900
@@ -137,15 +137,6 @@
   _echo "Ensured existence of ${*}"
 }
 
-_tmux() {
-  # Remove old tmux config.
-  _rc uninstall "tmux.conf" ".tmux.conf"
-  for tmux_conf in "${rcdir}/tmux-"*.conf; do
-    tmux_conf_file="`basename "/${tmux_conf}"`"
-    _rc "${1}" "${tmux_conf_file}" ".${tmux_conf_file}"
-  done
-}
-
 _vim_x() {
   case "${1}" in
     install) _echon "Copying";;
@@ -224,7 +215,7 @@
     _touch "${1}" "${HOME}/.config/hg/ignore.local"
     _rc "${1}" "editrc" ".editrc"
     _rc "${1}" "inputrc" ".inputrc"
-    _tmux "${1}"
+    _rc "${1}" "tmux.conf" ".config/tmux/tmux.conf"
     _vim_x "${1}" syntax
     _vim_packs "${1}"
     _rc "${1}" "vimrc" ".vimrc"