A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
Mirrors: standalone servers with complete copy of npm registry
Proxies: proxy to the database (couchdb) of npm registry, if only the npm registry server fails but the db works
## HowTo See this gist: https://gist.github.com/3331671
(+) means server is self updating (pulls newest stuff from offical registry when back online again)
#!/bin/bash | |
function git_submodule_unchanged () { | |
SUB_MODULE=$1 | |
GSC_RC=0 | |
pushd $SUB_MODULE > /dev/null | |
SUB_BRANCH=$(git branch | grep '*' | cut -d' ' -f 2) | |
if [[ "$(git log --pretty=oneline origin/${SUB_BRANCH}..${SUB_BRANCH})" != "" ]]; then | |
GSC_RC=1 | |
fi |