☎ 彩色提示符
- iblicf
- 帖子: 3766
- 注册时间: 2007-01-15 17:15
\u - 当前用户名( =$LOGNAME)
\h - 运行shell的计算机名(hostname)
\H - 完整的计算机名
\W - 当前的工作目录名
\w - 当前工作目录全路径名
\$ - 对于普通用户显示$,对于超级用户显示#
\! - 当前命令的历史编号
\# - 当前命令编号(在当前的shell下运行的命令)
\d - 当前日期
\t - 当前时间(24小时制)
\T - 当前时间(12小时制 ,bash 2.0有效
\@ - 当前时间(AM/PM格式),bash 2.0 有效
\s - shell的类型
\a - 告警的声音
\j - 用户的任务数
\n - 新行
\\ - 反斜杠
\[ - 不可打印字符开始标志
\] - 不可打印字符结束标志
\nnn - ASCII字符对应八进制数值
$(date) - date命令(输出当前日期)或者其它的命令输出。
\h - 运行shell的计算机名(hostname)
\H - 完整的计算机名
\W - 当前的工作目录名
\w - 当前工作目录全路径名
\$ - 对于普通用户显示$,对于超级用户显示#
\! - 当前命令的历史编号
\# - 当前命令编号(在当前的shell下运行的命令)
\d - 当前日期
\t - 当前时间(24小时制)
\T - 当前时间(12小时制 ,bash 2.0有效
\@ - 当前时间(AM/PM格式),bash 2.0 有效
\s - shell的类型
\a - 告警的声音
\j - 用户的任务数
\n - 新行
\\ - 反斜杠
\[ - 不可打印字符开始标志
\] - 不可打印字符结束标志
\nnn - ASCII字符对应八进制数值
$(date) - date命令(输出当前日期)或者其它的命令输出。
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
ee,我发现你的口头禅了。
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
帮你解决问题还踩……早知道多让你郁闷几天。
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
- zhuqin_83
- 帖子: 10606
- 注册时间: 2006-05-13 4:02
- 联系:
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
酷毙了zhuqin_83 写了:嫌麻烦或者想学习一下的话,看看这里
http://www.nanolx.org/index.php?option= ... 7&Itemid=1
装个软件,自己琢磨去。人家脚本和配置都很全的。
^_^ ~~~
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
要理解递归,首先要理解递归。
地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
- bones7456
- 帖子: 8495
- 注册时间: 2006-04-12 20:05
- 来自: 杭州
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
bone的\n的方法不错的。一劳永逸。呵呵。
代码: 全选
☎ cat .exp_ls_colors
# 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 cygwin
TERM dtterm
TERM mlterm
TERM putty
TERM xterm
TERM xterm-color
TERM xterm-debian
TERM rxvt
TERM rxvt-unicode
TERM screen
TERM screen-bce
TERM screen-w
TERM vt100
TERM Eterm
# 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 00;33;47 # directory
LINK 00;35 # 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
SETUID 37;41 # file that is setuid (u+s)
SETGID 30;43 # file that is setgid (g+s)
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
# This is for files with execute permission:
EXEC 04;33
# 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
#
# archives or compressed (bright red)
.tar 00;31
.tgz 00;31
.arj 00;31
.taz 00;31
.lzh 00;31
.zip 00;31
.z 00;31
.Z 00;31
.gz 00;31
.bz2 00;31
.deb 00;31
.rpm 00;31
.jar 00;31
# image formats
.jpg 00;34
.jpeg 00;34
.gif 00;34
.bmp 00;34
.pbm 00;34
.pgm 00;34
.ppm 00;34
.tga 00;34
.xbm 00;34
.xpm 00;34
.tif 00;34
.tiff 00;34
.png 00;34
.svg 00;34
.xcf 00;34
.mov 00;33
.mpg 00;33
.mpeg 00;33
.avi 00;33
.fli 00;33
.gl 00;33
.dl 00;33
.swf 00;33
.xwd 00;33
.3gp 00;33
# audio formats
.flac 00;32
.mp3 00;32
.mpc 00;32
.ogg 00;32
.wav 00;32
● 鸣学
- bones7456
- 帖子: 8495
- 注册时间: 2006-04-12 20:05
- 来自: 杭州
- 联系: