作者 mzli [actionscript] 2007-01-17 16:07 (点击下载)

  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2.  
  3. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  4. # for examples
  5.  
  6. # If not running interactively, don't do anything
  7. [ -z "$PS1" ] && return
  8.  
  9. # don't put duplicate lines in the history. See bash(1) for more options
  10. export HISTCONTROL=ignoredups
  11.  
  12. # check the window size after each command and, if necessary,
  13. # update the values of LINES and COLUMNS.
  14. shopt -s checkwinsize
  15.  
  16. # make less more friendly for non-text input files, see lesspipe(1)
  17. [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
  18.  
  19. # set variable identifying the chroot you work in (used in the prompt below)
  20. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  21. debian_chroot=$(cat /etc/debian_chroot)
  22. fi
  23.  
  24. # set a fancy prompt (non-color, unless we know we "want" color)
  25. case "$TERM" in
  26. xterm-color)
  27. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  28. ;;
  29. *)
  30. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  31. ;;
  32. esac
  33.  
  34. # Comment in the above and uncomment this below for a color prompt
  35. #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  36.  
  37. # If this is an xterm set the title to user@host:dir
  38. case "$TERM" in
  39. xterm*|rxvt*)
  40. PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
  41. ;;
  42. *)
  43. ;;
  44. esac
  45.  
  46. # Alias definitions.
  47. # You may want to put all your additions into a separate file like
  48. # ~/.bash_aliases, instead of adding them here directly.
  49. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  50.  
  51. #if [ -f ~/.bash_aliases ]; then
  52. # . ~/.bash_aliases
  53. #fi
  54.  
  55. # enable color support of ls and also add handy aliases
  56. if [ "$TERM" != "dumb" ]; then
  57. eval "`dircolors -b`"
  58. alias ls='ls --color=auto'
  59. #alias dir='ls --color=auto --format=vertical'
  60. #alias vdir='ls --color=auto --format=long'
  61. fi
  62.  
  63. # some more ls aliases
  64. #alias ll='ls -l'
  65. #alias la='ls -A'
  66. #alias l='ls -CF'
  67.  
  68. # enable programmable completion features (you don't need to enable
  69. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  70. # sources /etc/bash.bashrc).
  71. if [ -f /etc/bash_completion ]; then
  72. . /etc/bash_completion
  73. fi
  74. alias acs='apt-cache search -n'
  75. alias acw='apt-cache show'
  76. alias l='ls'
  77. alias la='ls -lha'
  78. alias ll='ls -lh'
  79. alias ls='ls --color=auto'
  80. export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
  81. export PATH=$PATH:$JAVA_HOME/bin

提交下面的校正或者修改. (点击这里开始一个新的帖子)
姓名: 在 cookie 中记住我的名字

屏幕抓图:(jpeg 或 png)