Skip to content

Instantly share code, notes, and snippets.

@rahult
Created August 4, 2013 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahult/6149284 to your computer and use it in GitHub Desktop.
Save rahult/6149284 to your computer and use it in GitHub Desktop.
### Will save you're ass! ###
# Set C compiler
set -gx CC gcc
# Set architecture flags
set -gx ARCHFLAGS "-arch x86_64"
# fish functions and aliases
alias ls "ls -GF"
# fish shell greeting
set -gx fish_greeting ''
### Program defaults ###
set -gx BROWSER open
set -gx VISUAL vim -f
set -gx EDITOR vim -f
### PATH ###
set xquartz_path /opt/X11/bin
set default_path /usr/bin /usr/sbin /bin /sbin
set homebrew /usr/local/bin /usr/local/sbin
set brew_rbenv "/usr/local/var/rbenv/shims"
set brew_php (brew --prefix josegonzalez/php/php54)/bin
set -gx PATH $homebrew $brew_php $brew_rbenv $default_path $xquartz_path
### Ruby (rbenv) ###
set -gx RBENV_ROOT /usr/local/var/rbenv
### GitHub ###
# GitHub git base URL.
set -gx HUB_BASE git@github.com:rahult
### NOTES ###
# fish adds its bin dir when it starts, $__fish_bin_dir(/usr/local/Cellar/fishfish/HEAD/bin),
# to a global PATH, global is this session, universal is all sessions.
# the global takes precedence over the universal, so set -U PATH does not work
# https://github.com/fish-shell/fish-shell/issues/527
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment