Skip to content

Instantly share code, notes, and snippets.

@jeanetienne
Created February 7, 2016 22:07
Show Gist options
  • Save jeanetienne/5eb48e79baa532df3551 to your computer and use it in GitHub Desktop.
Save jeanetienne/5eb48e79baa532df3551 to your computer and use it in GitHub Desktop.
# For Homebrew (brew.sh)
set -x PATH "/usr/local/bin:$PATH"
# For Cask (caskroom.io)
set -x HOMEBREW_CASK_OPTS "--caskroom=~/Documents/Caskroom --appdir=~/Applications"
# Make TextMate the default editor
set -x EDITOR "/usr/local/bin/mate -w"
# Make TextMate usable with git
set -x GIT_EDITOR "/usr/local/bin/mate -w"
# Aliases
alias g="git"
alias gcodev="git checkout develop; g pull"
alias o="open ."
alias ow="open *.xcworkspace"
alias ox="open *.xcodeproj"
alias on="open ~/Desktop/notes.txt"
alias ofc="mate ~/.config/fish/config.fish"
alias ofh="mate ~/.config/fish/fish_history"
alias rmdd="rm -rf ~/Library/Developer/Xcode/DerivedData"
set -x fish_color_status red
set -x fish_color_git_prompt cyan
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -l delim '>'
if test $last_status -ne 0
set -g prompt_status "[$last_status] "
else
set -g prompt_status ""
end
echo -sn (set_color $fish_color_status) $prompt_status (set_color $fish_color_cwd) (prompt_pwd) (set_color $fish_color_git_prompt) (__fish_git_prompt) (set_color $fish_color_normal) ' ' $delim ' '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment