Mercurial > ec-dotfiles
comparison rc/bashrc @ 737:002d6aa2d76e
[tmux] Remove legacy configs
author | nanaya <me@nanaya.net> |
---|---|
date | Thu, 09 Jan 2025 03:16:29 +0900 |
parents | ef7fa8396997 |
children | 687d9ee4a5c9 |
comparison
equal
deleted
inserted
replaced
736:3281fed2e242 | 737:002d6aa2d76e |
---|---|
277 if command -v curl > /dev/null 2>&1; then | 277 if command -v curl > /dev/null 2>&1; then |
278 alias 0p="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[paste_gzip]=@-'" | 278 alias 0p="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[paste_gzip]=@-'" |
279 alias 0pp="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=@-'" | 279 alias 0pp="gzip | curl 'https://paste.myconan.net/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=@-'" |
280 fi | 280 fi |
281 | 281 |
282 if command -v tmux > /dev/null 2>&1; then | |
283 case "${_os}" in | |
284 OpenBSD) | |
285 _tmux_conf_ver=2.9 | |
286 ;; | |
287 *) | |
288 case "$(tmux -V 2> /dev/null)" in | |
289 "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;; | |
290 "tmux 2."[2-8]) _tmux_conf_ver=2.2;; | |
291 "tmux 1.9"|"tmux 2."[0-1]) _tmux_conf_ver=1.9;; | |
292 "tmux 1."[4-8]) _tmux_conf_ver=1.4;; | |
293 *) _tmux_conf_ver=1.3;; | |
294 esac | |
295 ;; | |
296 esac | |
297 alias tmux="tmux -f '""${HOME}""/.tmux-""${_tmux_conf_ver}"".conf'" | |
298 unset _tmux_conf_ver | |
299 fi | |
300 | |
301 unset _os | 282 unset _os |
302 unset _uid | 283 unset _uid |
303 unset i | 284 unset i |
304 | 285 |
305 # reset cursor shape | 286 # reset cursor shape |