-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbashrc
33 lines (24 loc) · 856 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
#!/bin/bash
# Only set this up if it's an interactive shell
if [ -t 1 ]; then
# Custom commands to run before setting up the default
# environment. Such as setting TERM=xterm-256color
# when the emulator cannot, lame. :(
[ -f ~/.localrc-pre ] && source ~/.localrc-pre
source ~/.bash/completions
source ~/.bash/paths
source ~/.bash/config
source ~/.bash/aliases
# FZF
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# chruby ruby switcher
[ -f /usr/local/share/chruby/chruby.sh ] && source /usr/local/share/chruby/chruby.sh
# rbenv
if command -v rbenv >/dev/null 2>&1; then
eval "$(rbenv init -)"
fi
# Setup autojump, a faster way to navigate directories.
[ -f /usr/share/autojump/autojump.bash ] && source /usr/share/autojump/autojump.bash
# Custom commands to run last
[ -f ~/.localrc ] && source ~/.localrc
fi