User Tools

Site Tools


colorized_ls

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
colorized_ls [2013/12/15 16:47]
kyxap
colorized_ls [2014/01/29 18:00]
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>​
  
colorized_ls.txt · Last modified: 2014/01/29 18:00 by kyxap