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
Next revision
Previous revision
colorized_ls [2013/12/15 13:40]
kyxap Page moved from freebsd:colorized_ls to colorized_ls
colorized_ls [2014/01/29 18:00] (current)
kyxap [Цветной вывод ls для FreeBSD]
Line 1: Line 1:
-====== ​UPDATE: coreutils ​======+{{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>​
  
 ======= OUTDATED ======= ======= OUTDATED =======
- 
-====== Цветной вывод ls для FreeBSD ====== 
  
 Цветовая схема в FreeBSD, используемая по умолчанию для ls, отличается от стандартной схемы в Linux. \\ Цветовая схема в FreeBSD, используемая по умолчанию для ls, отличается от стандартной схемы в Linux. \\
colorized_ls.1387114810.txt.gz · Last modified: 2013/12/15 13:40 by kyxap