Add gitignore.io function and alias

This commit is contained in:
Andrew Tomaka 2014-08-21 05:56:28 -04:00
parent 165d45c882
commit f75cafa09a
2 changed files with 5 additions and 0 deletions

View file

@ -22,6 +22,7 @@ alias gcm="echo Do not specify message at command line. Use gc"
alias gco="git checkout" alias gco="git checkout"
alias gd="git diff" alias gd="git diff"
alias gfl="git log --patch" alias gfl="git log --patch"
alias gi="gitignore-io"
alias gl="git log" alias gl="git log"
alias gh="git hist" alias gh="git hist"
alias ghd="git hist-details" alias ghd="git hist-details"

View file

@ -27,3 +27,7 @@ function map-sshfs {
sshfs -o idmap=user -o workaround=rename $USER'@'$1':'$2 $HOME'/Mounts/'$3 sshfs -o idmap=user -o workaround=rename $USER'@'$1':'$2 $HOME'/Mounts/'$3
fi fi
} }
function gitignore-io {
curl http://www.gitignore.io/api/$@
}