Colorful ls(dircolos) on mac terminalColorful ls(dircolos) on mac terminal
Posted at 2010. 1. 8. 01:02 | Posted in OS/Mac출처: http://mattbsoftware.blogspot.com/2009/04/colerful-ls-dircolors-on-mac.html
Install GNU coreutils Steps:
- Download coreutils (I used v7.2). d/l http://ftp.gnu.org/gnu/coreutils site: http://www.gnu.org/software/coreutils
- untar it tar xzvf coreututils-7.2.tar.gz
- cd into the coreutils-7.2 directory
- ./configure --prefix=/usr
- make
- make check - (I had 2 test failures, but no problems)
- Install all GNU core utils by executing 'sudo make install'
- OR just install ls and dircolors, and leave everything else BSD by copying ls & dircolors from ./src to /usr/bin
Easy way:
1. install macports (http://www.macports.org/)
2. sudo port -v install coreutils
3. edit .bashrc
export LSCOLORS=exgxcxdxcxegedabagacad |
Setup bash_profile
- edit .bash_profile
- add these lines
#parses .dircolors and makes env var for GNU ls
eval `dircolors`
#eval `dircolors ~/.dircolors`
alias ls='ls -hF --color=auto'#eval `dircolors ~/.dircolors`
Setup .dircolors
-------------------------------------BOF .dircolors
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM linux-c
TERM mach-color
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM xterm
TERM xterm-debian
TERM rxvt
TERM screen
TERM screen-w
TERM vt100
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
# numerical value, the color is as for the file pointed to.)
FIFO 40;33 # pipe
SOCK 01;35 # socket
DOOR 01;35 # door
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file
# This is for files with execute permission:
EXEC 01;32
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# If you use DOS-style suffixes, you may want to uncomment the following:
#.cmd 01;32 # executables (bright green)
#.exe 01;32
#.com 01;32
#.btm 01;32
#.bat 01;32
.tar 01;31 # archives or compressed (bright red)
.tgz 01;31
.arj 01;31
.taz 01;31
.lzh 01;31
.zip 01;31
.z 01;31
.Z 01;31
.gz 01;31
.bz2 01;31
.deb 01;31
.rpm 01;31
.jar 01;31
.dmg 01;31
# image formats
.jpg 01;35
.png 01;35
.gif 01;35
.bmp 01;35
.ppm 01;35
.tga 01;35
.xbm 01;35
.xpm 01;35
.tif 01;35
.png 01;35
.mpg 01;35
.avi 01;35
.fli 01;35
.gl 01;35
.dl 01;35
------------------------------------------------EOF .dircolors# LS_COLORS environment variable used by GNU ls with the --color option.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM linux-c
TERM mach-color
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM xterm
TERM xterm-debian
TERM rxvt
TERM screen
TERM screen-w
TERM vt100
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
# numerical value, the color is as for the file pointed to.)
FIFO 40;33 # pipe
SOCK 01;35 # socket
DOOR 01;35 # door
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
ORPHAN 40;31;01 # symlink to nonexistent file
# This is for files with execute permission:
EXEC 01;32
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# If you use DOS-style suffixes, you may want to uncomment the following:
#.cmd 01;32 # executables (bright green)
#.exe 01;32
#.com 01;32
#.btm 01;32
#.bat 01;32
.tar 01;31 # archives or compressed (bright red)
.tgz 01;31
.arj 01;31
.taz 01;31
.lzh 01;31
.zip 01;31
.z 01;31
.Z 01;31
.gz 01;31
.bz2 01;31
.deb 01;31
.rpm 01;31
.jar 01;31
.dmg 01;31
# image formats
.jpg 01;35
.png 01;35
.gif 01;35
.bmp 01;35
.ppm 01;35
.tga 01;35
.xbm 01;35
.xpm 01;35
.tif 01;35
.png 01;35
.mpg 01;35
.avi 01;35
.fli 01;35
.gl 01;35
.dl 01;35
Google Master PlanGoogle Master Plan
Posted at 2009. 11. 26. 18:28 | Posted in Etcvim colorschemevim colorscheme
Posted at 2009. 10. 27. 16:42 | Posted in Etc각종 vim colorscheme을 직접보고 다운 받을 수 있다.
http://code.google.com/p/vimcolorschemetest/
http://vimcolorschemetest.googlecode.com/svn/html/index-c.html
[워드2007] 전체페이지 수 넣기[워드2007] 전체페이지 수 넣기
Posted at 2009. 9. 28. 17:41 | Posted in OS/MS Windows워드 2007에서는 이전 버전에서 지원하던 전체페이지 수 넣기 메뉴가 없어져서 찾기가 상당히 어려워 졌다.
방법은 메뉴 "삽입 -> 텍스트 ->빠른 문서 요소 ->필드" 를 선택하면 다음 대화창이 나온다.
필드에서 NumPages를 선택한다. "필드 코드"를 눌러 입력 코드를 확인할 수 있다.
"확인"을 누르면 커서 위치에 전체페이지수가 들어간다.
이 값은 필드 코드 값이므로 페이지가 증가하면 자동 갱신되어 표시된다.
Tip) 필드 코드를 보려면 Alt+F9를 누르면 된다(토글). 또는 해당 필드를 마우스로 선택한 뒤 오른쪽마우스 메뉴를 눌러 "필드 편집"으로 편집 할 수도 있다.
Alt+F9를 누르면 다음과 같이 현재페이지 번호와 전체 페이지 번호의 코드가 표시된다. 직접 수정하거나 "필드 편집" 메뉴로 수정한다.
Alt+F9를 누르면 다음과 같이 현재페이지 번호와 전체 페이지 번호의 코드가 표시된다. 직접 수정하거나 "필드 편집" 메뉴로 수정한다.
텔넷으로 보는 스타워즈텔넷으로 보는 스타워즈
Posted at 2009. 9. 23. 17:02 | Posted in Etctelnet towel.blinkenlights.nl
당신이 세상 어디에 있든,
사랑하는 사람과 함께 있지 않는다면.
그곳은 무인도이다.
Software ApplicationsSoftware Applications
Posted at 2008. 12. 17. 01:06 | Posted in 연구/FSMThe following concepts are commonly used to build software applications with finite state machines: