Tuesday, March 04, 2008

我的.cshrc文件

我的.cshrc文件: "# $FreeBSD: src/etc/root/dot.cshrc,v 1.29 2004/04/01 19:28:00 krion Exp $

#

# .cshrc - csh resource script, read at beginning of execution by each shell

#

# see also csh(1), environ(7).

lias h history 25

alias j jobs -l

alias la ls -a

alias lf ls -FA

alias ll ls -lA

alias lls ls -G

# A righteous umask

umask 22

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin /usr/X11R6/bin /usr/local/jdk1.4.2/bin /usr/local/jdk1.4.2/jre/bin $HOME/bin)

setenv EDITOR ee

setenv PAGER more

setenv BLOCKSIZE K

setenv LANG zh_CN.eucCN

setenv LC_ALL zh_CN.eucCN

setenv LC_CTYPE zh_CN.eucCN

setenv JAVA_HOME /usr/local/jdk1.4.2

setenv CLASSPATH .:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/jre

setenv XMODIFIERS @im=fcitx

if ($?prompt) then

# An interactive shell -- set some stuff up

set prompt = '%B%m@%n[%/]# '

set filec

set history = 100

set savehist = 100

set mail = (/var/mail/$USER)

if ( $?tcsh ) then

bindkey '^W' backward-delete-word

bindkey -k up history-search-backward

bindkey -k down history-search-forward

endif

endif"

CSH Multiline prompt Linux on your way - Powered by Sablog-X

CSH Multiline prompt Linux on your way - Powered by Sablog-X: "# %B begin bold
# %b end bold
# %{ begin control escape
# %} end control escape, cannot be the last in prompt
# %m hostname, without domain
# %/ current directory
# %D day in dd format
# %W month in mm format
# %Y year in yyyy format
# %l tty
# %P time in 24 hour format
# %h history number"

Monday, March 03, 2008

tcshshell - pengpeng.popo - 网易博客

tcshshell - pengpeng.popo - 网易博客: "history -c"

history -c

关于Linux操作系统提示符PS1定义的问题-Linux伊甸园----Linux|Unix|新闻|下载|论坛|�

关于Linux操作系统提示符PS1定义的问题-Linux伊甸园----Linux|Unix|新闻|下载|论坛|�

Linux系统提示符是用系统变量PS1来定义的。一般系统默认的形式是:[username@host 工作目录]$.

用echo $PS1可以得到PS1的值,即PS1="[\u@\h \w]"\$

登录后可以更改PS1的显示样式,但是当退出重启登录进入系统后,样式又变成系统默认的样式了,如果要彻底改变它的样式,只能从配置文件中改。

PS是在用户根目录下的.bash_profile中定义的。

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

#以下是设定的PS1的值

PS1="[\u@\h \w]\$"

PATH=$PATH:$HOME/bin

#使用export把PS1输出,以使它可以在子shell中生效,这会造成ROOT用户的也采用此样式

#export PS1 要慎用

export PATH

unset USERNAME

下面简单说说环境下默认的特殊符号所代表的意义:

\d :代表日期,格式为weekday month date,例如:"Mon Aug 1"

\H :完整的主机名称。例如:我的机器名称为:fc4.linux,则这个名称就是fc4.linux

\h :仅取主机的第一个名字,如上例,则为fc4,.linux则被省

\t :显示时间为24小时格式,如:HH:MM:SS

\T :显示时间为12小时格式

\A :显示时间为24小时格式:HH:MM

\u :当前用户的账号名称

\v :BASH的版本信息

\w :完整的工作目录名称。家目录会以 ~代替

\W :利用basename取得工作目录名称,所以只会列出最后一个目

\# :下达的第几个命令

\$ :提示字符,如果是root时,提示符为:# ,普通用户则为:$

(责任编辑:A6)

来源:赛迪网 供稿:sixth  时间: 2007-11-07 13:43:06 评论0条 点击:阅读次数: 308次

Sunday, February 17, 2008

The Art and Science of JavaScript

The Art and Science of JavaScript: "By James Edwards

January 16th 2008

Reader Rating: 7.3

In this tutorial, we'll look at a technique for using CSS [1] and JavaScript [2] to build a first-person-perspective maze, in homage to old-school adventure games like Dungeon Master and Doom.

In truth, the scripting involved is fairly complex, and it won't be possible for me to spell out every nuance of the code in this single tutorial. In fact, I won't even list every method used in the script, as some of them are quite long. What I can do, though, is introduce you to the principles of creating shapes and perspective with CSS, and the task of using JavaScript to generate those shapes on de"

Wednesday, February 13, 2008

JABRA BT-5010 蓝牙耳机入手


因为买了车,又习惯把手机放口袋里,加上今年加州 一边开车一边打电话已经算是犯法了,于是入手一个蓝牙耳机..

莫名其妙就买了
丹麦捷波朗Jabra BT5010蓝牙耳机(据说可以同时无线连接两种蓝牙设备,但是我的电脑上没试验成功...以后再试...eee)

总体感觉

优点:
1.小

2.轻

3.通话清楚

4.据说可以同时用两个设备


不足:

1.说明书上说是右耳佩戴的,结果是左耳,害我弄了半天。。。

2.说明书上的键的按法是和真实的不一样的。。。


我觉得不足的地方还是比较害人的,尤其是第一次用bluetooth headset的人。。。

所以写下来希望能对其他人有用