You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# Disable capslock
 | 
						|
if [[ -x `which setxkbmap` ]]; then
 | 
						|
    if [[ `uname` == 'Linux' ]]; then
 | 
						|
        setxkbmap -option ctrl:nocaps
 | 
						|
    fi
 | 
						|
fi
 | 
						|
 | 
						|
# Go package info
 | 
						|
export GOPATH=$HOME/opt/go
 | 
						|
 | 
						|
# don't put duplicate lines in the history. See bash(1) for more options
 | 
						|
# ... or force ignoredups and ignorespace
 | 
						|
HISTCONTROL=ignoredups:ignorespace
 | 
						|
 | 
						|
# append to the history file, don't overwrite it
 | 
						|
shopt -s histappend
 | 
						|
 | 
						|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
 | 
						|
HISTSIZE=100000
 | 
						|
HISTFILESIZE=200000
 | 
						|
 | 
						|
# check the window size after each command and, if necessary,
 | 
						|
# update the values of LINES and COLUMNS.
 | 
						|
shopt -s checkwinsize
 | 
						|
 | 
						|
# make less more friendly for non-text input files, see lesspipe(1)
 | 
						|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
 | 
						|
 | 
						|
if [ "$TERM" == "xterm" ]; then
 | 
						|
    export TERM=xterm-256color
 | 
						|
fi
 | 
						|
 | 
						|
function _add-path {
 | 
						|
    dir="$1"
 | 
						|
    if [[ -d $dir ]]; then
 | 
						|
        PATH=$dir:$PATH
 | 
						|
    fi
 | 
						|
}
 | 
						|
 | 
						|
_add-path ~/opt/go/bin
 | 
						|
_add-path /var/lib/gems/1.8/bin
 | 
						|
_add-path /Library/Frameworks/Python.framework/Versions/2.7/bin
 | 
						|
_add-path ~/.rvm/bin
 | 
						|
_add-path ~/opt/bin
 | 
						|
_add-path /usr/local/mysql/bin
 | 
						|
_add-path /opt/vertica/bin
 | 
						|
_add-path /opt/local/bin
 | 
						|
_add-path /opt/local/sbin
 | 
						|
_add-path ~/bin
 | 
						|
_add-path /usr/local/go/bin
 | 
						|
_add-path ~/.bin
 | 
						|
 | 
						|
if [[ $(uname) == 'Darwin' ]]; then
 | 
						|
    export BS_OS='osx'
 | 
						|
elif [[ $(uname) == 'Linux' ]]; then
 | 
						|
    export BS_OS='linux'
 | 
						|
fi
 | 
						|
 | 
						|
export EDITOR='vim'
 | 
						|
 | 
						|
[[ -f ~/.nvm/nvm.sh ]] && source ~/.nvm/nvm.sh
 | 
						|
[[ -r $NVM_DIR/bash_completion ]] && source $NVM_DIR/bash_completion
 |