-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
38 lines (30 loc) · 834 Bytes
/
profile
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
# Local bin & Homebrew
PATH=/usr/local/sbin:~/bin:/usr/local/bin:$PATH
export PATH
# chruby
# Setup chruby
#
latest_installed_ruby()
{
/bin/ls -1 -d ~/.rubies/ruby-* | tail -n 1 | xargs basename
}
if command -v chruby-exec > /dev/null; then
source /usr/local/share/chruby/chruby.sh
chruby $(latest_installed_ruby)
source /usr/local/share/chruby/auto.sh
fi
# Bundler Commands
alias bx='bundle exec'
alias bxr='bundle exec rspec'
if [ "$PS1" ]; then
export HISTCONTROL=ignoredups
export HISTSIZE=1000000
shopt -s histappend # append history to ~\.bash_history when exiting shell
fi
export EDITOR="nvim"
# Brew bash completion
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
source ~/Projects/dotfiles/bin/jump_to_project.sh
source ~/Projects/dotfiles/bin/proml.sh