shell定制,常用的设置写入.bashrc文件,写入文件后用source .bashrc命令运行,设置即可生效;
"设置显示路径,~目录加当前目录
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\W\$ '
fi
"常用片假名设置
# some more ls aliases
alias ll='ls -alF'
alias la='ls -a'
alias l='ls -CF'
alias clc='clear'
alias rm='rm -i'
alias cat='cat -b'
alias echo='echo -e'
没有评论:
发表评论