Mercurial > ec-dotfiles
comparison rc/bashrc @ 714:14e2910879f0
Combine sunos handler
author | nanaya <me@nanaya.net> |
---|---|
date | Thu, 19 Oct 2023 05:52:45 +0900 |
parents | 4f5b040a589c |
children | 3f0fd2156612 |
comparison
equal
deleted
inserted
replaced
713:4f5b040a589c | 714:14e2910879f0 |
---|---|
96 _ls="ls" | 96 _ls="ls" |
97 _grep="grep" | 97 _grep="grep" |
98 _has_posix_grep=y | 98 _has_posix_grep=y |
99 _uid=$(id -u) | 99 _uid=$(id -u) |
100 | 100 |
101 if [ SunOS = "${_os}" ]; then | |
102 if [ -f /usr/share/lib/terminfo/s/screen ]; then | |
103 export TERMINFO=/usr/share/lib/terminfo | |
104 elif [ -f /opt/csw/share/terminfo/s/screen ]; then | |
105 export TERMINFO=/opt/csw/share/terminfo | |
106 else | |
107 unset TERMINFO | |
108 export TERM=dtterm | |
109 fi | |
110 | |
111 [ xterm = "${TERM}" ] && export TERM=xterm-256color | |
112 fi | |
113 | |
114 case "${_os}" in | 101 case "${_os}" in |
115 Linux) | 102 Linux) |
116 _has_gnu_ls=y | 103 _has_gnu_ls=y |
117 _has_gnu_grep=y | 104 _has_gnu_grep=y |
118 ;; | 105 ;; |
119 SunOS) | 106 SunOS) |
107 if [ -f /usr/share/lib/terminfo/s/screen ]; then | |
108 export TERMINFO=/usr/share/lib/terminfo | |
109 elif [ -f /opt/csw/share/terminfo/s/screen ]; then | |
110 export TERMINFO=/opt/csw/share/terminfo | |
111 else | |
112 unset TERMINFO | |
113 export TERM=dtterm | |
114 fi | |
115 | |
116 [ xterm = "${TERM}" ] && export TERM=xterm-256color | |
120 _has_posix_grep=n | 117 _has_posix_grep=n |
121 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y | 118 [ -x /usr/gnu/bin/ls ] && _has_gnu_ls=y |
122 [ -x /usr/gnu/bin/grep ] && _has_gnu_grep=y | 119 [ -x /usr/gnu/bin/grep ] && _has_gnu_grep=y |
123 # Higher priority directories | 120 # Higher priority directories |
124 for i in {/opt/csw,/usr/gnu}/{,s}bin; do | 121 for i in {/opt/csw,/usr/gnu}/{,s}bin; do |