-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
41 lines (30 loc) · 760 Bytes
/
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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
set -o vi
unset PROMPT_COMMAND
EDITOR=vim
export EDITOR
# Build PATH
PATH=$PATH:$HOME/src/scripts
PATH=$PATH:$HOME/bin
# Krew path for kubectl plugins
PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
_os=$(uname -s)
for _bashrc in ".bashrc.${_os}" .bashrc.local; do
[ -f "$HOME/${_bashrc}" ] && source "$HOME/${_bashrc}"
done
# rbenv
PATH=$PATH:$HOME/.rbenv/bin
export PATH
eval "$(rbenv init -)"
# nodenv
PATH=$PATH:$HOME/.nodenv/bin
export PATH
eval "$(nodenv init -)"
# User specific aliases and functions
alias vim='TERM=xterm-256color vim'
u () { bundle exec rake database:migrate:force:up file=$1; }
d () { bundle exec rake database:migrate:force:down file=$1; }