📄 00000019.htm
字号:
# 用真正的换码字符代替^[
<BR>
<BR>
<BR> PS1='^[[$COLOUR;37m$USER:^[[37;40m\w\$ '
<BR>
<BR> # aliases
<BR> # 别名
<BR>
<BR> alias cp='cp -i'
<BR> alias l=less
<BR> alias lyx='lyx -width 900 -height 700'
<BR> alias mv='mv -i'
<BR> alias rm='rm -i'
<BR> alias x=startx
<BR>
<BR> # A few useful functions
<BR> # 几个有用的功能
<BR>
<BR> inst() # Install a .tar.gz archive in the current <BR>directory.
<BR> { gzip -dc $1 | tar xvf - }
<BR>
<BR> cz() # List the contents of a .zip archive.
<BR> { unzip -l $* }
<BR>
<BR> ctgz() # List the contents of a .tar.gz archive.
<BR> {
<BR> for file in $* ; do
<BR> gzip -dc ${file} | tar tf -
<BR> done
<BR> }
<BR>
<BR> tgz() # Create a .tgz archive a la zip.
<BR> {
<BR> name=$1 ; tar -cvf $1 ; shift
<BR> tar -rf ${name} $*
<BR> gzip -S .tgz ${name}
<BR> }
<BR>
<BR>
<BR>
<BR> 此处为.bash_profile:
<BR>
<BR>
<BR>
<BR> # $HOME/.bash_profile
<BR>
<BR> # User specific environment and startup programs
<BR> # 用户特定的环境叁数和启动程式
<BR> #
<BR> # This file contains user-defined settings that <BR>override
<BR> # those in /etc/profile
<BR> # 这个文档中存有用户自订的设置,可取代/etc/profile 中的 <BR>数值
<BR> #
<BR> # Get aliases and functions
<BR> # 设定别名和功能
<BR> #
<BR> if [ -f ~/.bashrc ]; then
<BR> . ~/.bashrc
<BR> fi
<BR>
<BR> # re-get PS1 settings
<BR> # 重新设定PS1数值
<BR>
<BR> if [ $USER = 'root' ] ; then
<BR> COLOUR=41
<BR> else
<BR> COLOUR=44
<BR> fi
<BR>
<BR> # put a real escape character instead of ^[
<BR> # 用真正的换码字符代替^[
<BR>
<BR> PS1='^[[$COLOUR;37;1m$HOSTNAME:^[[37;40;1m\w\$ '
<BR>
<BR> export PS1
<BR>
<BR>
<BR>
<BR> 此处为 .bash_logout:
<BR>
<BR>
<BR>
<BR> # $HOME/.bash_logout
<BR>
<BR> clear
<BR>
<BR>
<BR>
<BR> 此处为 .inputrc:
<BR>
<BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -