comparison rc/shellinit-posix @ 737:002d6aa2d76e

[tmux] Remove legacy configs
author nanaya <me@nanaya.net>
date Thu, 09 Jan 2025 03:16:29 +0900
parents 92eb89781346
children
comparison
equal deleted inserted replaced
736:3281fed2e242 737:002d6aa2d76e
6 export LC_CTYPE="en_US.UTF-8" 6 export LC_CTYPE="en_US.UTF-8"
7 # The en_US.UTF-8 causes weird sorting. 7 # The en_US.UTF-8 causes weird sorting.
8 # (not really, but I prefer C based sort.) 8 # (not really, but I prefer C based sort.)
9 export LC_COLLATE=C 9 export LC_COLLATE=C
10 export LC_MESSAGES=C 10 export LC_MESSAGES=C
11
12 if command -v tmux > /dev/null 2>&1; then
13 case "${_os}" in
14 OpenBSD)
15 # FIXME: OpenBSD version check
16 _tmux_conf_ver=1.9
17 ;;
18 *)
19 case "$(tmux -V 2> /dev/null)" in
20 "tmux 1."[1-9][0-9]*|"tmux 1.9"*) _tmux_conf_ver=1.9;;
21 "tmux 1."[4-8]*) _tmux_conf_ver=1.4;;
22 *) _tmux_conf_ver=1.3;;
23 esac
24 ;;
25 esac
26 alias tmux="tmux -f '""${HOME}""/.tmux-""${_tmux_conf_ver}"".conf'"
27 unset _tmux_conf_ver
28 fi
29 11
30 if command -v vim > /dev/null 2>&1; then 12 if command -v vim > /dev/null 2>&1; then
31 alias vi=vim 13 alias vi=vim
32 export EDITOR=vim 14 export EDITOR=vim
33 fi 15 fi