This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
colorized_ls [2013/12/15 16:47] kyxap |
colorized_ls [2014/01/29 18:00] (current) kyxap [Цветной вывод ls для FreeBSD] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag>freebsd dircolors ls coreutils bash}}====== Цветной вывод ls для FreeBSD ====== | + | {{tag>freebsd dircolors ls coreutils bash}} |
| + | ====== Цветной вывод ls для FreeBSD ====== | ||
| В пакете coreutils присутствуют GNU реализации ls и dircolors, что позволяет использовать привычные схемы подсветки. | В пакете coreutils присутствуют GNU реализации ls и dircolors, что позволяет использовать привычные схемы подсветки. | ||
| # pkg install coreutils | # pkg install coreutils | ||
| - | <code=bash ~/.bashrc>[[ -x `which gdircolors` ]] && eval "$(gdircolors -b)" || export LSCOLORS=ExGxFxdxCxDxDxhbadExEx | + | <code=bash ~/.bashrc> |
| - | [[ -x `which gls` ]] && alias ls='gls --color=auto' || alias ls='ls -G' | + | alias grep="grep --color=auto" |
| - | [[ -x `which gsed` ]] && alias sed='gsed' | + | [[ -x `which gdircolors` ]] && eval "$(gdircolors -b)" || export LSCOLORS=ExGxFxdxCxDxDxhbadExEx |
| - | alias grep='grep --color=auto' | + | [[ -x `which gls` ]] && alias ls="gls --color=auto" || alias ls="ls -G" |
| + | [[ -x `which gsed` ]] && alias sed="gsed" | ||
| </code> | </code> | ||