Created
August 16, 2013 14:56
-
-
Save zackkitzmiller/6250627 to your computer and use it in GitHub Desktop.
Relies on oh-my-fish (https://github.com/bpinto/oh-my-fish) and virtualfish (https://github.com/adambrenecki/virtualfish)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# paths | |
set fish_path $HOME/.oh-my-fish | |
set -x PATH /usr/local/bin /usr/local/share/npm/bin /usr/local/sbin ~/bin /usr/local/pear/bin $PATH | |
set -x DYLD_LIBRARY_PATH /usr/local/mysql/lib $DYLD_LIBRARY_PATH | |
set -x GHI_TOKEN "REDACTED" | |
set -x PYTHONPATH /usr/local/lib/python2.7/site-packages $PYTHONPATH | |
# Because of some bullshit in the listing feed | |
set -x STATSD_PORT 1 | |
set -x SG_ENV dev | |
set -x LOLCOMMITS_DEVICE "FaceTime HD Camera (Built-in)" | |
# Theme | |
# ENV vars | |
set fish_theme robbyrussell | |
set VIRTUALFISH_HOME $HOME/virtualenvs | |
set VIRTUALFISH_COMPAT_ALIASES true | |
# Aliases | |
alias git=hub | |
alias python='python -tt' | |
alias ls='ls -laGh' | |
alias tower=gittower | |
alias composer='php /usr/local/bin/composer.phar' | |
alias pipr='pip install -r requirements.txt --upgrade' | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/ | |
# Example format: set fish_plugins autojump git | |
set fish_plugins git brew autojump | |
# Path to your custom folder (default path is $FISH/custom) | |
#set fish_custom $HOME/dotfiles/oh-my-fish | |
# Load oh-my-fish cofiguration. | |
. $fish_path/oh-my-fish.fish | |
. $HOME/.config/fish/virtualfish.fish | |
# RBENV | |
set PATH $HOME/.rbenv/bin $PATH | |
set PATH $HOME/.rbenv/shims $PATH | |
rbenv rehash >/dev/null ^&1 | |
function rbenv_shell | |
set -l vers $argv[1] | |
switch "$vers" | |
case '--complete' | |
echo '--unset' | |
echo 'system' | |
exec rbenv-versions --bare | |
return | |
case '--unset' | |
set -e RBENV_VERSION | |
return 1 | |
case '' | |
if [ -z "$RBENV_VERSION" ] | |
echo "rbenv: no shell-specific version configured" >&2 | |
return 1 | |
else | |
echo "$RBENV_VERSION" | |
return | |
end | |
case '*' | |
rbenv prefix "$vers" > /dev/null | |
set -g -x RBENV_VERSION "$vers" | |
end | |
end | |
function rbenv | |
set -l command $argv[1] | |
[ (count $argv) -gt 1 ]; and set -l args $argv[2..-1] | |
switch $command | |
case shell | |
rbenv_shell $args | |
case '*' | |
command rbenv $command $args | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment