spacepaste

  1.  
  2. # ~/.bashrc: executed by bash(1) for non-login shells.
  3. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  4. # for examples
  5. # If not running interactively, don't do anything
  6. [ -z "$PS1" ] && return
  7. # don't put duplicate lines in the history. See bash(1) for more options
  8. # ... or force ignoredups and ignorespace
  9. HISTCONTROL=ignoredups:ignorespace
  10. # append to the history file, don't overwrite it
  11. shopt -s histappend
  12. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  13. HISTSIZE=1000
  14. HISTFILESIZE=2000
  15. # check the window size after each command and, if necessary,
  16. # update the values of LINES and COLUMNS.
  17. shopt -s checkwinsize
  18. # make less more friendly for non-text input files, see lesspipe(1)
  19. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  20. # set variable identifying the chroot you work in (used in the prompt below)
  21. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  22. debian_chroot=$(cat /etc/debian_chroot)
  23. fi
  24. # set a fancy prompt (non-color, unless we know we "want" color)
  25. case "$TERM" in
  26. xterm-color) color_prompt=yes;;
  27. esac
  28. # uncomment for a colored prompt, if the terminal has the capability; turned
  29. # off by default to not distract the user: the focus in a terminal window
  30. # should be on the output of commands, not on the prompt
  31. #force_color_prompt=yes
  32. if [ -n "$force_color_prompt" ]; then
  33. if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  34. # We have color support; assume it's compliant with Ecma-48
  35. # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  36. # a case would tend to support setf rather than setaf.)
  37. color_prompt=yes
  38. else
  39. color_prompt=
  40. fi
  41. fi
  42. if [ "$color_prompt" = yes ]; then
  43. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  44. else
  45. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  46. fi
  47. unset color_prompt force_color_prompt
  48. # If this is an xterm set the title to user@host:dir
  49. case "$TERM" in
  50. xterm*|rxvt*)
  51. PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  52. ;;
  53. *)
  54. ;;
  55. esac
  56. # enable color support of ls and also add handy aliases
  57. if [ -x /usr/bin/dircolors ]; then
  58. test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
  59. alias ls='ls --color=auto'
  60. #alias dir='dir --color=auto'
  61. #alias vdir='vdir --color=auto'
  62. alias grep='grep --color=auto'
  63. alias fgrep='fgrep --color=auto'
  64. alias egrep='egrep --color=auto'
  65. fi
  66. # some more ls aliases
  67. alias ll='ls -alF'
  68. alias la='ls -A'
  69. alias l='ls -CF'
  70. # Alias definitions.
  71. # You may want to put all your additions into a separate file like
  72. # ~/.bash_aliases, instead of adding them here directly.
  73. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  74. if [ -f ~/.bash_aliases ]; then
  75. . ~/.bash_aliases
  76. fi
  77. # enable programmable completion features (you don't need to enable
  78. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  79. # sources /etc/bash.bashrc).
  80. if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
  81. . /etc/bash_completion
  82. fi
  83. PATH=/home/fiodorovich/ZendFramework/bin:${PATH}
  84. export PATH=$PATH:/home/fiodorovich/ZendFramework/bin
  85. export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26"
  86.