Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 96 lines (71 sloc) 3.153 kB
df0af8c Initial revision
richardc authored
1 # ~/.bashrc: executed by bash(1) for non-login shells.
2
476c1a9 start on configuring bash rite
richardc authored
3 # If not running interactively, don't do anything
4 [ -z "$PS1" ] && return
5
6 # don't put duplicate lines in the history. See bash(1) for more options
7 export HISTCONTROL=ignoredups
8 # ... and ignore same sucessive entries.
9 export HISTCONTROL=ignoreboth
10
5f72544 @richardc ipc realname
authored
11 export EDITOR=vim
12
4146940 state a full path
richardc authored
13 # my path, not yours
62829f7 @richardc break declaration of PATH over multiple lines
authored
14 PATH="$HOME/bin"
665dc68 @richardc use ccache by default (when we can)
authored
15 PATH="$PATH:/usr/lib/ccache" # ccache symlinks on debian
e0b397e @richardc another ccache path
authored
16 PATH="$PATH:/usr/lib64/ccache" # ccache symlinks on CentOS (x86_64)
665dc68 @richardc use ccache by default (when we can)
authored
17
18 ccache=$( echo /usr/local/Cellar/ccache/*/libexec )
19 [[ -e "$ccache" ]] && PATH="$PATH:$ccache" # ccache symlinks on OSX (brew)
20
7031faa @richardc scan the rubygems path
authored
21 PATH="$PATH:$HOME/.gem/ruby/1.8/bin" # ruby gems
62829f7 @richardc break declaration of PATH over multiple lines
authored
22 PATH="$PATH:$HOME/hck/perl-5.12.1/bin" # handbuilt perl
23 PATH="$PATH:/opt/local/bin:/opt/local/sbin" # macports
24 PATH="$PATH:/opt/xt/xt-perl/bin" # nap machines
25 PATH="$PATH:/usr/local/git/bin" # http://code.google.com/p/git-osx-installer/
52b089c @richardc MacTeX
authored
26 PATH="$PATH:/usr/texbin" # MacTeX
62829f7 @richardc break declaration of PATH over multiple lines
authored
27 PATH="$PATH:/usr/local/bin:/usr/local/sbin"
28 PATH="$PATH:/usr/bin:/usr/sbin"
29 PATH="$PATH:/bin:/sbin"
30 export PATH
4146940 state a full path
richardc authored
31
476c1a9 start on configuring bash rite
richardc authored
32 # check the window size after each command and, if necessary,
33 # update the values of LINES and COLUMNS.
34 shopt -s checkwinsize
35
36 # make less more friendly for non-text input files, see lesspipe(1)
37 [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
38
790d7c9 @richardc hose out the ipc_realname stuff
authored
39 PS1='\033[1m[\D{%Y-%m-%d %H:%M:%S}] \u@\h:\w\033[0m\n\$ '
476c1a9 start on configuring bash rite
richardc authored
40
41 # If this is an xterm set the title to user@host:dir
42 case "$TERM" in
43 xterm*|rxvt*|screen)
44 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
45 ;;
46 *)
47 ;;
48 esac
49
50 # append history
51 shopt -s histappend
52 PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
53
71ae5be clear out the command_not_found_handle
richardc authored
54 # fuck you and your auto-suggesting ways
55 unset command_not_found_handle
476c1a9 start on configuring bash rite
richardc authored
56
6b87208 @richardc silence errors from the find over /tmp
authored
57 # repopulate SSH_AUTH_SOCK so we can talk to the ssh-agent
58 AGENT=($(find /tmp -type s -name "agent.*" 2>/dev/null))
3d06459 @richardc propogate variables for ssh agent
authored
59 if [ -S ${AGENT} ] ; then
60 export SSH_AUTH_SOCK=${AGENT}
61 fi
c6820db @richardc it's SSH_AUTH_SOCK not SSH_AUTH_SOCKET
authored
62 [ $( uname ) == "Darwin" ] && eval `launchctl export | grep SSH_AUTH_SOCK`
3d06459 @richardc propogate variables for ssh agent
authored
63
c054fcb @richardc use xdg-open as open on Linux
authored
64 # xdg-open(1) on Linux, open(1) on OSX
65 [ $( uname ) == "Linux" ] && alias open=xdg-open
66
f06197e @richardc experiment with using the hub wrapper
authored
67
68 [[ -e /usr/local/bin/hub ]] && alias git=hub
f390f74 @richardc ipc boxes, vi and vim are different beasts and I normally one the hai…
authored
69 alias vi=vim
70
e6b490f @richardc add pythonbrew, and put setup urls
authored
71 # enable perlbrew http://search.cpan.org/perldoc?perlbrew
72 [[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]] && source "$HOME/perl5/perlbrew/etc/bashrc"
75edf99 @richardc use perlbrew, if it's about
authored
73
eef2d7c @richardc experiment with local::lib
authored
74 # enable local::lib http://search.cpan.org/perldoc?local::lib
75 [[ -s "$HOME/perl5/lib/perl5/local/lib.pm" ]] && eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)
76
e6b490f @richardc add pythonbrew, and put setup urls
authored
77 # enable rvm http://rvm.beginrescueend.com/
9a23b8a @richardc enable rvm
authored
78 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
79
e6b490f @richardc add pythonbrew, and put setup urls
authored
80 # enable pythonbrew https://github.com/utahta/pythonbrew
81 [[ -s "$HOME/.pythonbrew/etc/bashrc" ]] && source "$HOME/.pythonbrew/etc/bashrc"
82
fd3e553 something started exporting LESS that broke git's use of color diffin…
Richard Clamp authored
83 # clean out some broken vars
84 export -n LESS
b5c303c @richardc disable the "surprise" auto-logout variable
authored
85 export -n TMOUT
86
fd3e553 something started exporting LESS that broke git's use of color diffin…
Richard Clamp authored
87
476c1a9 start on configuring bash rite
richardc authored
88 return # one day we may want programmable completion, but not soon
89
90 # enable programmable completion features (you don't need to enable
91 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
92 # sources /etc/bash.bashrc).
93 if [ -f /etc/bash_completion ]; then
94 . /etc/bash_completion
df0af8c Initial revision
richardc authored
95 fi
Something went wrong with that request. Please try again.