shnulaa

          Never deter till tomorrow that which you can do today
          posts - 15, comments - 0, trackbacks - 0, articles - 2
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          putty 的配色方案

          Posted on 2010-09-29 13:18 shnulaa 閱讀(1601) 評(píng)論(0)  編輯  收藏 所屬分類: linux
          因?yàn)閜utty的默認(rèn)配色方案導(dǎo)致文件夾的藍(lán)顏色看得不清楚,所以有必要修改一下默認(rèn)的配色方案。
          修改用戶根目錄下的.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-"$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.
          13shopt -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)
          19if [ -"$debian_chroot" --/etc/debian_chroot ]; then
          20    debian_chroot=$(cat /etc/debian_chroot)
          21fi
          22
          23# set a fancy prompt (non-color, unless we know we "want" color)
          24case "$TERM" in
          25xterm-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    ;;
          31esac
          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
          37case "$TERM" in
          38xterm*|rxvt*)
          39    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
          40    ;;
          41*)
          42    ;;
          43esac
          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
          55if [ "$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'
          60fi
          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


          1source .bashrc

          顯示效果


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 曲水县| 大港区| 岳西县| 新津县| 塔河县| 唐山市| 星子县| 古交市| 蓝田县| 泰顺县| 上蔡县| 靖远县| 根河市| 定南县| 荔浦县| 平利县| 六枝特区| 定安县| 云安县| 遂平县| 辽源市| 乌拉特前旗| 凤城市| 石家庄市| 桦甸市| 广南县| 神农架林区| 绥阳县| 武胜县| 大宁县| 榆林市| 辽宁省| 临湘市| 出国| 利津县| 六盘水市| 仪征市| 怀化市| 祁东县| 伊春市| 莲花县|