Fix for OpenBSD ls alias https://github.com/Eriner/zim/issues/47
Closes #48
This commit is contained in:
parent
98f501a435
commit
d510f4f861
1 changed files with 8 additions and 1 deletions
|
@ -31,8 +31,15 @@ else
|
||||||
export LSCOLORS='exfxcxdxbxGxDxabagacad'
|
export LSCOLORS='exfxcxdxbxGxDxabagacad'
|
||||||
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:'
|
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:'
|
||||||
|
|
||||||
|
# stock OpenBSD ls does not support colors at all, but colorls does.
|
||||||
|
if [[ $OSTYPE == openbsd* ]]; then
|
||||||
|
if (( ${+commands[colorls]} )); then
|
||||||
|
alias ls='colorls -G'
|
||||||
|
fi
|
||||||
|
else
|
||||||
alias ls='ls -G'
|
alias ls='ls -G'
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue