.bashrc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2. # CSL default
  3. # by kkowal 2005-06-21 and updated by various other people
  4. # apence, 20120909: this is a very Sun centric set of options
  5. # DO NOT MAKE CHANGES TO THIS FILE. Put your changes in your .mybashrc
  6. # file instead.
  7. # If not running interactively, don't do anything
  8. [ -z "$PS1" ] && return
  9. #
  10. # `PS1' is run each time the bash prompt is drawn. The following
  11. # line noise draws a colorful prompt with your user name, which
  12. # computer you're logged into, and what directory you're in.
  13. #
  14. #PS1="\@ \h \w\\$ " # non-colored
  15. PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ '
  16. #
  17. # `PATH' determines the locations, in order, in which the shell will look for
  18. # executable programs.
  19. #
  20. #PATH=/bin:/usr/bin:/usr/sbin
  21. PATH=/bin:/usr/bin
  22. # IF it exists, Look in my home bin first, then the other path
  23. [ -d ~/bin ] && PATH=~/bin:$PATH
  24. # IF it exists, look here after the normal path
  25. [ -d /usr/local/bin ] && PATH=$PATH:/usr/local/bin
  26. [ -d /usr/share/bin ] && PATH=$PATH:/usr/share/bin
  27. ### NO don't add PATH=$PATH:.
  28. # the better option is to type ./command when the command is in cwd
  29. # if you want to make a habbit of running other commands out of your path
  30. # append them to your path in your .mybashrc
  31. # YOU need to know what you are going to run
  32. export PATH
  33. #
  34. # `MANPATH' determines the locations, in order, where `man' will look
  35. # for manual pages.
  36. #
  37. MANPATH=/usr/share/man
  38. [ -d ~/man ] && MANPATH=~/man:$MANPATH
  39. # ML
  40. [ -d /usr/local/sml/bin ] && PATH=$PATH:/usr/local/sml/bin
  41. [ -d /usr/local/man ] && MANPATH=$MANPATH:/usr/local/man
  42. [ -d /usr/local/share/man ] && MANPATH=$MANPATH:/usr/local/share/man
  43. export MANPATH
  44. #
  45. # `PAGER' is the name of the program that many applications will use to
  46. # limit their output to a page at a time. `more' is the original pager.
  47. # `less' additionally allows you to back up.
  48. #
  49. PAGER=less
  50. #PAGER=more
  51. # make less more friendly for non-text input files, see lesspipe(1)
  52. [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
  53. #
  54. # `EDITOR' is the name of the program that many applications will invoke
  55. # to edit a text file.
  56. #
  57. #EDITOR=vim
  58. #EDITOR=emacs
  59. #EDITOR=pico # Warning: other users will be able to see
  60. # you using this with the ps command ;-)
  61. #
  62. # common aliases
  63. #
  64. # the following is a list of commonly used aliases, to use them simply remove
  65. # the '#' from the beginning of the line. Read the man pages to find out
  66. # exactly what each command does.
  67. #
  68. #alias h="history | $PAGER"
  69. #alias ls="ls -F1"
  70. #alias l.="ls -FA1"
  71. #alias ll="ls -slagFL"
  72. #alias lf="ls -F"
  73. #alias lr="ls -RF"
  74. #alias l="ls -FLAsC"
  75. #alias bye="logout"
  76. #
  77. # don't put duplicate lines in the history. See bash(1) for more options
  78. #
  79. export HISTCONTROL=ignoredups
  80. #
  81. # `umask' is an octal bit mask which constrains the permissions you
  82. # will grant to new files by default. 077 completely denies other users
  83. # access to your files. 022 denies all other users write access.
  84. # The CSL mandates that you keep your umask set to 077, and only
  85. # change some small known set of files so that others may have access.
  86. #
  87. umask 077
  88. #
  89. # check the window size after each command and, if necessary,
  90. # update the values of LINES and COLUMNS.
  91. #
  92. shopt -s checkwinsize
  93. #
  94. # `TERM' determines what kind of terminal the system expects you are using.
  95. # This affects whether and what kinds of control characters will be sent
  96. # to your terminal client (like color codes and cursor positions).
  97. #
  98. #TERM=xtermc
  99. #
  100. # if this is an xterm set the title of the window to user@host:dir
  101. #
  102. case "$TERM" in
  103. xterm*|rxvt*)
  104. PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
  105. ;;
  106. *)
  107. ;;
  108. esac
  109. #
  110. # enable programmable completion features (you don't need to enable
  111. # this, if it's already enabled in /etc/bash.bashrc).
  112. #
  113. [ -f /etc/bash_completion ] && . /etc/bash_completion
  114. #
  115. # This runs a user defined script `.mybashrc', which by default does
  116. # nothing.
  117. #
  118. #[ -f ~/.bashrc.`uname` ] && . ~/.bashrc.`uname`
  119. #[ -f ~/.bashrc.`hostname` ] && . ~/.bashrc.`hostname`
  120. [ -f ~/.mybashrc ] && . ~/.mybashrc
  121. # end