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
PS1_BASE="$PS1" | |
format_prompt () { | |
if [ "$?" -ne "0" ]; then | |
PS1="${PS1_BASE}\[\033[0;31m\]ಠ_ಠ\[\033[0m\] " | |
else | |
PS1="${PS1_BASE}" | |
fi | |
} | |
PROMPT_COMMAND=format_prompt |
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
// browser history with HTML5 support | |
(function() { | |
var loc = window.location, | |
pushSupport = !!(window.history && window.history.pushState), | |
hashStrip = /^#*/; | |
// add HTML5 support to Backbone.history, drop the old IE stuff | |
_.extend(Backbone.History.prototype, { | |
getFragment : function(l) { |