SHARE
TWEET

Untitled

a guest Jan 12th, 2017 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 or lines starting with space in the history.
  9. # See bash(1) for more options
  10. HISTCONTROL=ignoreboth
  11.  
  12. # append to the history file, don't overwrite it
  13. shopt -s histappend
  14.  
  15. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  16. HISTSIZE=1000
  17. HISTFILESIZE=2000
  18.  
  19. # check the window size after each command and, if necessary,
  20. # update the values of LINES and COLUMNS.
  21. shopt -s checkwinsize
  22.  
  23. # If set, the pattern "**" used in a pathname expansion context will
  24. # match all files and zero or more directories and subdirectories.
  25. #shopt -s globstar
  26.  
  27. # make less more friendly for non-text input files, see lesspipe(1)
  28. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  29.  
  30. # set variable identifying the chroot you work in (used in the prompt below)
  31. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  32.     debian_chroot=$(cat /etc/debian_chroot)
  33. fi
  34.  
  35. # set a fancy prompt (non-color, unless we know we "want" color)
  36. case "$TERM" in
  37.     xterm-color) color_prompt=yes;;
  38. esac
  39.  
  40. # uncomment for a colored prompt, if the terminal has the capability; turned
  41. # off by default to not distract the user: the focus in a terminal window
  42. # should be on the output of commands, not on the prompt
  43. #force_color_prompt=yes
  44.  
  45. if [ -n "$force_color_prompt" ]; then
  46.     if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
  47.     # We have color support; assume it's compliant with Ecma-48
  48.     # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
  49.     # a case would tend to support setf rather than setaf.)
  50.     color_prompt=yes
  51.     else
  52.     color_prompt=
  53.     fi
  54. fi
  55.  
  56. if [ "$color_prompt" = yes ]; then
  57.     PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
  58. else
  59.     PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
  60. fi
  61.  
  62. unset color_prompt force_color_prompt
  63.  
  64.  # If this is an xterm set the title to user@host:dir
  65. case "$TERM" in
  66. xterm*|rxvt*)
  67.      PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
  68.      ;;
  69. *)
  70.      ;;
  71. esac
  72.  
  73. # some more ls aliases
  74. alias ll='ls -alF'
  75. alias la='ls -A'
  76. alias l='ls -CF'
  77.  
  78.  # Add an "alert" alias for long running commands.  Use like so:
  79.  #   sleep 10; alert
  80. alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
  81.  
  82.  # enable programmable completion features (you don't need to enable
  83.  # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  84.  # sources /etc/bash.bashrc).
  85. if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
  86.      . /etc/bash_completion
  87. fi
  88.  
  89. source ~/.gitrc
  90.  
  91. export JAVA_HOME=$(/usr/libexec/java_home)
  92.  
  93. export NVM_DIR="$HOME/.nvm"
  94. . "$(brew --prefix nvm)/nvm.sh"
  95.  
  96. . /usr/local/opt/autoenv/activate.sh
  97.  
  98.  # Alias definitions.
  99.  # You may want to put all your additions into a separate file like
  100.  # ~/.bash_aliases, instead of adding them here directly.
  101.  # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  102. source ~/.bash_aliases
  103.  
  104. . ~/.maven_bash_completion
RAW Paste Data
Top