Guest User

Untitled

a guest
Apr 24th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  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. # ... and ignore same sucessive entries.
  11. export HISTCONTROL=ignoreboth
  12.  
  13. # check the window size after each command and, if necessary,
  14. # update the values of LINES and COLUMNS.
  15. shopt -s checkwinsize
  16.  
  17. # make less more friendly for non-text input files, see lesspipe(1)
  18. [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
  19.  
  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.  
  25. # set a fancy prompt (non-color, unless we know we "want" color)
  26. case "$TERM" in
  27. xterm-color)
  28. PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  29. ;;
  30. *)
  31. PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  32. ;;
  33. esac
  34.  
  35. # Comment in the above and uncomment this below for a color prompt
  36. #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  37.  
  38. # If this is an xterm set the title to user@host:dir
  39. case "$TERM" in
  40. xterm*|rxvt*)
  41. PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
  42. ;;
  43. *)
  44. ;;
  45. esac
  46.  
  47. # Alias definitions.
  48. # You may want to put all your additions into a separate file like
  49. # ~/.bash_aliases, instead of adding them here directly.
  50. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  51.  
  52. #if [ -f ~/.bash_aliases ]; then
  53. # . ~/.bash_aliases
  54. #fi
  55.  
  56. # enable color support of ls and also add handy aliases
  57. if [ "$TERM" != "dumb" ]; then
  58. eval "`dircolors -b`"
  59. alias ls='ls --color=auto'
  60. #alias dir='ls --color=auto --format=vertical'
  61. #alias vdir='ls --color=auto --format=long'
  62. fi
  63.  
  64. # some more ls aliases
  65. #alias ll='ls -l'
  66. #alias la='ls -A'
  67. #alias l='ls -CF'
  68.  
  69. # enable programmable completion features (you don't need to enable
  70. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  71. # sources /etc/bash.bashrc).
  72. if [ -f /etc/bash_completion ]; then
  73. . /etc/bash_completion
  74. fi
  75.  
  76. export PATH=/var/lib/gems/1.8/gems:$PATH
Add Comment
Please, Sign In to add comment