Created
December 14, 2016 13:35
-
-
Save czj/871d6134c079cb8ceb482e25bf53092d to your computer and use it in GitHub Desktop.
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
set -x BROWSER "/Applications/Firefox.app/Contents/MacOS/firefox-bin" | |
set -x EDITOR "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -w" | |
set -x RUBY_CONFIGURE_OPTS "--with-jemalloc" | |
status --is-interactive; and source (rbenv init -|psub) | |
alias atom="/Applications/Atom.app/Contents/Resources/app/atom.sh" | |
alias buuc="brew update; and brew upgrade --cleanup" | |
alias ddb="make download_db" | |
alias df='df -h' | |
alias ducks='du -cksh * | sort -rn | head -11' | |
alias e="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" | |
alias f="find . | grep -i" | |
alias fs="clear; and source .env.development; and foreman start -f Procfile.development" | |
alias gitconfig="e ~/.gitconfig" | |
alias gphm="git push heroku master" | |
alias gpr='hub pull-request' | |
alias gpsm="git push scalingo master" | |
alias h=history | |
alias l="ls -lah" | |
alias meteo="weather" | |
alias rails="bundle exec rails" | |
alias rake="bundle exec rake" | |
alias rdm="rake db:migrate" | |
alias rgm="rails generate migration" | |
alias rm_ds_store='find ~/ -name ".DS_Store" -depth -exec rm {} \;' | |
alias sdb="make source_db" | |
alias sl="touch log/development.log ; tail -F log/development.log" | |
alias slp="tail -f ~/Library/Logs/puma-dev.log" | |
alias sr="mkdir -p tmp ; touch tmp/restart.txt" | |
alias st='git status' | |
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" | |
alias tpr='git track ; gpr' | |
alias weather="curl -s http://wttr.in/Aubervilliers" | |
# GIT | |
set normal (set_color normal) | |
set magenta (set_color magenta) | |
set yellow (set_color yellow) | |
set green (set_color green) | |
set red (set_color red) | |
set gray (set_color -o black) | |
# Fish git prompt | |
set __fish_git_prompt_showdirtystate 'yes' | |
set __fish_git_prompt_showstashstate 'yes' | |
set __fish_git_prompt_showuntrackedfiles 'yes' | |
set __fish_git_prompt_showupstream 'yes' | |
set __fish_git_prompt_color_branch yellow | |
set __fish_git_prompt_color_upstream_ahead green | |
set __fish_git_prompt_color_upstream_behind red | |
# Status Chars | |
set __fish_git_prompt_char_dirtystate '⚡' | |
set __fish_git_prompt_char_stagedstate '→' | |
set __fish_git_prompt_char_untrackedfiles '☡' | |
set __fish_git_prompt_char_stashstate '↩' | |
set __fish_git_prompt_char_upstream_ahead '+' | |
set __fish_git_prompt_char_upstream_behind '-' | |
function fish_prompt | |
set last_status $status | |
set_color $fish_color_cwd | |
printf '%s' (prompt_pwd) | |
set_color normal | |
printf '%s ' (__fish_git_prompt) | |
set_color normal | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment