shnulaa
Never deter till tomorrow that which you can do today
posts - 15, comments - 0, trackbacks - 0, articles - 2
BlogJava
::
首頁
::
新隨筆
::
聯(lián)系
::
聚合
::
管理
putty 的配色方案
Posted on 2010-09-29 13:18
shnulaa
閱讀(1599)
評論(0)
編輯
收藏
所屬分類:
linux
因為putty的默認配色方案導(dǎo)致文件夾的藍顏色看得不清楚,所以有必要修改一下默認的配色方案。
修改用戶根目錄下的.bashrc文件
1
#
~/.bashrc: executed by bash(1) for non-login shells.
2
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
3
# for examples
4
5
# If not running interactively, don't do anything
6
[
-
z
"
$PS1
"
]
&&
return
7
8
#
don't put duplicate lines in the history. See bash(1) for more options
9
#export HISTCONTROL=ignoredups
10
11
# check the window size after each command and, if necessary,
12
# update the values of LINES and COLUMNS.
13
shopt
-
s checkwinsize
14
15
#
make less more friendly for non-text input files, see lesspipe(1)
16
[
-x
/
usr
/
bin
/
lesspipe ]
&&
eval
"
$(lesspipe)
"
17
18
#
set variable identifying the chroot you work in (used in the prompt below)
19
if
[
-
z
"
$debian_chroot
"
-
a
-
r
/
etc
/
debian_chroot ]; then
20
debian_chroot
=
$(cat
/
etc
/
debian_chroot)
21
fi
22
23
#
set a fancy prompt (non-color, unless we know we "want" color)
24
case
"
$TERM
"
in
25
xterm
-
color)
26
PS1
=
'
${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
'
27
;;
28
*
)
29
PS1
=
'
${debian_chroot:+($debian_chroot)}\u@\h:\w\$
'
30
;;
31
esac
32
33
#
Comment in the above and uncomment this below for a color prompt
34
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
35
36
# If this is an xterm set the title to user@host:dir
37
case
"
$TERM
"
in
38
xterm
*|
rxvt
*
)
39
PROMPT_COMMAND
=
'
echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"
'
40
;;
41
*
)
42
;;
43
esac
44
45
#
Alias definitions.
46
# You may want to put all your additions into a separate file like
47
# ~/.bash_aliases, instead of adding them here directly.
48
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
49
50
#if [ -f ~/.bash_aliases ]; then
51
# . ~/.bash_aliases
52
#fi
53
54
# enable color support of ls and also add handy aliases
55
if
[
"
$TERM
"
!=
"
dumb
"
]; then
56
eval
"
`dircolors -b`
"
57
alias ls
=
'
ls --color=auto
'
58
#
alias dir='ls --color=auto --format=vertical'
59
#alias vdir='ls --color=auto --format=long'
60
fi
61
62
#
some more ls aliases
63
#alias ll='ls -l'
64
#alias la='ls -A'
65
#alias l='ls -CF'
66
67
# enable programmable completion features (you don't need to enable
68
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
69
# sources /etc/bash.bashrc).
70
#if [ -f /etc/bash_completion ]; then
71
# . /etc/bash_completion
72
#fi
73
1
source
.
bashrc
顯示效果
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發(fā)表評論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關(guān)文章:
一個比較不錯的linux學(xué)習網(wǎng)站
putty 的配色方案
ssh
Powered by:
BlogJava
Copyright © shnulaa
日歷
<
2010年9月
>
日
一
二
三
四
五
六
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
公告
常用鏈接
我的隨筆
我的評論
我的參與
留言簿
給我留言
查看公開留言
查看私人留言
隨筆分類
java(7)
linux(3)
maven(1)
隨筆檔案
2012年6月 (2)
2011年4月 (1)
2010年9月 (12)
文章檔案
2012年6月 (2)
sd
http://geniusman.co.cc/
http://geniusman.co.cc/
http://shnulaa.68480.net/
http://shnulaa.68480.net/
shnulaa
shnulaa
shnulaa
shnulaa
搜索
積分與排名
積分 - 4521
排名 - 3177
最新評論
閱讀排行榜
1.?putty 的配色方案(1599)
2.?jsp web shell(284)
3.?關(guān)于持續(xù)集成的問題(277)
4.?cmd5(239)
5.?http://geniusman.co.cc/http://geniusman.co.cc/(230)
評論排行榜
1.?http://geniusman.co.cc/http://geniusman.co.cc/(0)
2.?sss(0)
3.?一個比較不錯的linux學(xué)習網(wǎng)站(0)
4.?putty 的配色方案(0)
5.?關(guān)于持續(xù)集成的問題(0)
主站蜘蛛池模板:
有码人妻在线免费看片
|
亚洲国产精品久久久久久
|
日本不卡免费新一二三区
|
国内免费高清在线观看
|
69式国产真人免费视频
|
亚洲乱码无码永久不卡在线
|
亚洲无码黄色网址
|
亚洲毛片网址在线观看中文字幕
|
亚洲?V乱码久久精品蜜桃
|
免费a级毛片无码av
|
国产免费资源高清小视频在线观看
|
大地资源免费更新在线播放
|
久久99国产乱子伦精品免费
|
很黄很污的网站免费
|
特级av毛片免费观看
|
亚洲国产视频久久
|
亚洲国产综合人成综合网站00
|
亚洲人成伊人成综合网久久久
|
亚洲AV无码之日韩精品
|
免费黄色毛片视频
|
免费a级毛片无码a∨蜜芽试看
|
日本一卡精品视频免费
|
国偷自产一区二区免费视频
|
久久99热精品免费观看动漫
|
三级黄色在线免费观看
|
a级毛片无码免费真人久久
|
国产成人自产拍免费视频
|
精品国产污污免费网站入口
|
久久九九久精品国产免费直播
|
aa级女人大片喷水视频免费
|
中文在线免费看视频
|
小日子的在线观看免费
|
99久久99久久精品免费观看
|
8x网站免费入口在线观看
|
波多野结衣免费在线
|
好大好硬好爽免费视频
|
国产大片免费观看中文字幕
|
免费午夜爽爽爽WWW视频十八禁
|
四虎免费大片aⅴ入口
|
女人18毛片水最多免费观看
|
毛片在线看免费版
|