Skip to content

Instantly share code, notes, and snippets.

@damar-wicaksono
damar-wicaksono / 0_reuse_code.js
Created May 21, 2014 12:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# in ~/bin/gitprompt.csh:
setenv GIT_BRANCH_CMD "sh -c 'git branch --no-color 2> /dev/null' | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'"
set prompt="%m:%~ `$GIT_BRANCH_CMD`\n%B%#%b "
# and then in ~/.cshrc:
alias precmd "source ~/bin/gitprompt.csh"