Created
March 14, 2014 16:07
-
-
Save orta/9550789 to your computer and use it in GitHub Desktop.
My fish doftfile
This file contains hidden or 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
# Path to your oh-my-fish. | |
set fish_path $HOME/.oh-my-fish | |
set fish_plugins rvm bundler brew rake rails localhost objc autojump | |
set fish_theme idan | |
# Load oh-my-fish cofiguration. | |
. $fish_path/oh-my-fish.fish | |
set EDITOR_DE_JOUR 'mate' | |
setenv EDITOR "$EDITOR_DE_JOUR -w" | |
setenv GEM_EDITOR EDITOR_DE_JOUR | |
function -d "returns the current branch name" git-branch | |
printf (git rev-parse --abbrev-ref HEAD) | |
end | |
function fish_title | |
basename $PWD; | |
end | |
function fish_user_key_bindings | |
bind \ck accept-autosuggestion | |
end | |
set GIT_AUTHOR_NAME "Orta Therox" | |
set GIT_COMMITTER_NAME "$GIT_AUTHOR_NAME" | |
set GIT_AUTHOR_EMAIL "[email protected]" | |
set GIT_COMMITTER_EMAIL "$GIT_AUTHOR_EMAIL" | |
git config --global user.name "$GIT_AUTHOR_NAME" | |
git config --global user.email "$GIT_AUTHOR_EMAIL" | |
git config --global push.default simple | |
function fish_title echo basename $PWD; end | |
function -d "Git" g; git $argv; end | |
function -d "PRY" irb; pry $argv; end | |
function -d "open textmate" slime; mate $argv; end | |
function -d "remove deleted files from git" gitrm; git ls-files --deleted -z | xargs -0 git rm; end | |
function -d "Recommend" recommend; cd /Users/orta/spiel/misc/recommendations; slime .; git pull origin master; end | |
function -d "open energy" energy; cd ~/spiel/ios/energy;git status; end | |
function -d "open put.io for ios" puttio; cd ~/spiel/ios/puttio;git status; end | |
function -d "open eigen" eigen; cd ~/spiel/ios/eigen; git status; end | |
function -d "open the specs repo" specs; cd ~/spiel/ios/Specs; git pull origin master; end | |
function -d "open cocoadocs" cocoadocs; cd ~/spiel/html/cocoadocs``; git status; end | |
function -d "switch to master, pull, switch to branch" branch; git checkout master; git pull artsy master; git checkout -b "$argv"; end | |
function -d "push current branch to origin/branch" push; git push origin (git-branch); end | |
function -d "force push current branch to origin/branch" pushf; git push origin (git-branch) -f; end | |
function -d "git add and amend commit" gitac; git add .; git commit -m "$argv"; end | |
function -d "git add and commit" amend; git add .;git commit --amend; end | |
function -d "push and create a pull request" pr; push; open https://github.com/orta/(basename (pwd))/pull/new/artsy:master...(git-branch); end | |
function -d "remove beta things" unbeta; rm *.app.dSYM.zip; rm *.ipa; rm CHANGELOG_SHORT.md; git stash; end | |
function -d "rebase master" rebasem;git checkout spare; git fetch artsy master; git checkout ;git rebase master; pushf ; end | |
function -d "rebase from artsy/master" gitr; set REBASED_FROM (git-branch); git checkout master; git pull artsy master; git push origin master; git checkout $REBASED_FROM; git rebase master; pushf ; end | |
# Support running terminal commands from my projects folder | |
set PATH /Users/orta/spiel/terminal $PATH | |
set PATH /Applications/Postgres93.app/Contents/MacOS/bin $PATH | |
. ~/Dropbox/Mackup/.config/fish/ndenv.fish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment