comparison rc/bash @ 255:4a0f963a3ff1

PATH adjustment for OpenBSD.
author Edho Arief <edho@myconan.net>
date Tue, 15 Nov 2011 12:10:09 +0700
parents dde04581a2bf
children adcea08f6807
comparison
equal deleted inserted replaced
254:dde04581a2bf 255:4a0f963a3ff1
67 _has_rm_I=y 67 _has_rm_I=y
68 export CLICOLOR= 68 export CLICOLOR=
69 export LSCOLORS=ExGxFxdxCxegedabagExEx 69 export LSCOLORS=ExGxFxdxCxegedabagExEx
70 ;; 70 ;;
71 OpenBSD) 71 OpenBSD)
72 PATH="${PATH}:/usr/X11R6/bin"
72 if command -v gls > /dev/null 2>&1; then 73 if command -v gls > /dev/null 2>&1; then
73 _has_gnu_ls=y 74 _has_gnu_ls=y
74 _ls="gls" 75 _ls="gls"
75 elif command -v colorls > /dev/null 2>&1; then 76 elif command -v colorls > /dev/null 2>&1; then
76 export CLICOLOR= 77 export CLICOLOR=
77 export LSCOLORS=ExGxFxdxCxegedabagExEx 78 export LSCOLORS=ExGxFxdxCxegedabagExEx
78 alias ls='colorls -F' 79 alias ls='colorls -F'
79 fi 80 fi
80 ;; 81 ;;
81 NetBSD) 82 NetBSD)
82 export PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin" 83 PATH="${PATH}:/usr/pkg/bin:/usr/pkg/sbin"
83 if command -v gls > /dev/null 2>&1; then 84 if command -v gls > /dev/null 2>&1; then
84 _has_gnu_ls=y 85 _has_gnu_ls=y
85 _ls="gls" 86 _ls="gls"
86 elif command -v colorls > /dev/null 2>&1; then 87 elif command -v colorls > /dev/null 2>&1; then
87 export CLICOLOR= 88 export CLICOLOR=