-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
56 lines (43 loc) · 1.4 KB
/
bashrc
File metadata and controls
56 lines (43 loc) · 1.4 KB
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
46
47
48
49
50
51
52
53
54
55
56
#
# ~/.bashrc
#
export GOPATH="$HOME/.go"
export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:/usr/local/opt/ruby/bin:$PATH:/usr/bin/site_perl:$HOME/.local/bin:$GOPATH/bin:bin:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto -h'
alias ll='ls -l'
alias la='ls -la'
export LESSS='-R'
PS1='[\u@\h \W]\$ '
# USE VIM FFS!!
alias nano='vim'
alias vi='vim'
# Custom stuff
export EDITOR="vim"
export TERM=xterm-256color
# Options
shopt -s cdspell
shopt -s extglob
shopt -s histappend
shopt -s hostcomplete
export HISTCONTROL=ignoredups
export CLICOLOR=1
export LSCOLORS="exfxcxdxbxegedabagacad"
# Start ssh-agent with all keys
if hash keychain 2>/dev/null && [ -f ~/.ssh/id_rsa ] && [ -f ~/.ssh/github_rsa ]; then
eval $(keychain --eval --agents ssh -Q --quiet id_rsa github_rsa)
fi
# Load Bash Completion
if hash brew 2>/dev/null && [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
elif [ -r /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
fi
function _update_ps1() {
export PS1="$(powershell username hostname path git prompt $?)"
}
export PROMPT_COMMAND="_update_ps1"
# added by travis gem
[ -f /Users/rmbl/.travis/travis.sh ] && source /Users/rmbl/.travis/travis.sh