-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
45 lines (34 loc) · 1.35 KB
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export DOTFILES_HOME=$HOME/.dotfiles
if [ -f $DOTFILES_HOME/aliases_private ]; then
. $DOTFILES_HOME/aliases_private
fi
. $DOTFILES_HOME/aliases
# A touch of color w/ just username/directory
PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'
if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then
export TERM=xterm-256color
fi
[[ -s $HOME/.nvm/nvm.sh ]] && . /home/brian/.nvm/nvm.sh # Load NVM if present
[[ -d $HOME/.rvm/bin ]] && PATH=$PATH:$HOME/.rvm/bin # Load RVM if present
if [ -d $DOTFILES_HOME/tig-completion.bash ]; then
. $DOTFILES_HOME/tig-completion.bash
fi
PATH="$PATH:$DOTFILES_HOME/scripts/"
export PATH
export XDG_CONFIG_HOME=/home/brian/.config
export VIMRUNTIME=
export no_proxy="$no_proxy,10.140.*"
# I mean...Ubuntu should at least let some core dumps be present by default, right?...
ulimit -c unlimited
# Yes, allow **/*.js syntax plx
shopt -s globstar
# Source fzf https://github.com/junegunn/fzf
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Setting ag as the default source for fzf
# Handy since I'll already setup ag to have ignored files
export FZF_DEFAULT_COMMAND='ag -g ""'
# And since fzf replaces my bash history ctrl-r, let's give it more history to work with
# http://www.mosbase.com/2010/05/increase-your-bash-history-size.html
export HISTSIZE=3000000
export HISTCONTROL=erasedups
shopt -s histappend