I know it is not a gitalias, it is a shell wide alias for a command that involves git. That is why I said the better solution would be to use gitalias than your shell's alias functionality. With gitalias you can provide the same functionality without creating the possibility for command conflicts.
If you're going to do this at least put the 'fact' call before the git command, otherwise it seems to defeat the purpose of reading the fact while the git fetch / merge completes.
1) You really don't need Git to do this. Can you bind almost anything you like to make a call to this randomfact website.
2) The site doesn't only state facts. It says that elephants are the only animals that can't jump. This is simply not true, because snails for instance are animals as well, and it is proven that they can't jump.
27 comments
[ 3.5 ms ] story [ 69.0 ms ] threadNo, I fetch and then merge.
"Put those to your .bashrc or .zshrc"
git aliases should be added to gitconfig to avoid muddying the global namespace for commands.
[1]: https://github.com/mxcl/homebrew
port install elinks
WARNING: Replace ASTERISK with the asterisk character, keeps italicizing -.-
curl -s randomfunfacts.com | grep '<i>' | sed 's/.ASTERISK<i>\(.ASTERISK\)<\/i>.*/\1/'
WARNING: REPLACE ASTERISK with the ATERISK character, keeps italicizing
alias facts="echo -ne '\033[36m'; curl -s randomfunfacts.com | grep '<i>' | sed 's/.ASTERISK<i>\(.ASTERISK\)<\/i>.*/\1/'; echo -ne '\033[0m'; tput sgr0"
And run it in BG so we don't have to wait for call to website before we pull
alias gpl="( facts ); git pull"
1) You really don't need Git to do this. Can you bind almost anything you like to make a call to this randomfact website. 2) The site doesn't only state facts. It says that elephants are the only animals that can't jump. This is simply not true, because snails for instance are animals as well, and it is proven that they can't jump.