A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
| # encoding: UTF-8 | |
| # Spell check plugin for earthquake.gem | |
| # | |
| # written by Smile @rT, https://github.com/smileart, smileart@mail.ru | |
| # | |
| # INSTALL: | |
| # | |
| # 1. Resolve dependencies of raspell.gem: | |
| # https://github.com/evan/raspell/blob/master/README.rdoc | |
| # |
| # encoding: UTF-8 | |
| # Scale plugin for earthquake.gem | |
| # | |
| # written by Smile @rT, https://github.com/smileart | |
| # | |
| # WARNING: Works properly only with monospaced fonts! | |
| # PROTIP: Type under "=" symbol to avoid exceeding the limit | |
| # | |
| Earthquake.init do |
| body{ | |
| -webkit-perspective: 1000; | |
| -webkit-backface-visibility: hidden; | |
| -webkit-transform:translate3d(0,0,0); | |
| } | |
| #cover, #backcover | |
| { | |
| position:absolute; |
| body{ | |
| -webkit-perspective: 1000; | |
| -webkit-backface-visibility: hidden; | |
| -webkit-transform:translate3d(0,0,0); | |
| } | |
| .inset { text-shadow:#fff 0px 1px 0, #000 0 -1px 0;} | |
| #cover { |
| body{ | |
| -webkit-perspective: 1000; | |
| -webkit-backface-visibility: hidden; | |
| -webkit-transform:translate3d(0,0,0); | |
| } | |
| .inset { text-shadow:#fff 0px 1px 0, #000 0 -1px 0;} | |
| #cover { |
| # Add ’alias key='~/key.sh'’ to .bashrc or .zshrc | |
| case "$1" in | |
| "off") sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1 | |
| echo "Keyboard is temporary disabled" | |
| ;; | |
| "on") sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/ > /dev/null 2>&1 | |
| echo "Keyboard is enabled again" | |
| ;; | |
| "easy") sudo -K |
| ===== Gopher ===== | |
| -- Go lang mascot -- | |
| ⊂( ⓄϖⓄ)っ | |
| ⊂( ◐ϖ◑ )っ | |
| ⊂( ❍ϖ❍ )っ | |
| ⊂( ⦿ϖ⦿ )っ | |
| ⊂( ⊚ϖ⊚ )っ | |
| ⊂( ⊙ϖ⊙ )っ | |
| ⊂( ⚆ ϖ⚆ )っ |
| # Install http://pygments.org/download/ to use this improved cat! | |
| cat() { | |
| if command -v pygmentize > /dev/null; then | |
| pygmentize $1 > /dev/null 2>&1 | |
| if [ $? -eq 0 ]; then | |
| pygmentize $1 | |
| else | |
| command cat $1 | |
| fi | |
| else |
| alias offline='networksetup -setairportpower en1 off' | |
| alias online='networksetup -setairportpower en1 on' |