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
| #! /usr/bin/env ruby | |
| loop do | |
| system("clear") | |
| puts 'Last Un-Committed-Changes... ' + Time.now.inspect | |
| system("git status -s") | |
| sleep(10) | |
| curl -L https://raw.github.com/mbauhardt/antw/latest/src/main/scripts/antw-checkout.sh | sh |
dtdnsbash is an update client (https://www.dtdns.com/dtsite/updateclients) which updates your dynamic ip on https://www.dtdns.com/ to a given hostname.
| function antw { | |
| if [[ -z $ANTW_HOME ]]; then | |
| ANTW_HOME=$HOME/.antw/install | |
| fi | |
| $ANTW_HOME/bin/antw $@ | |
| } | |
| compdef _ant antw | |
| function antw-update { | |
| if [[ -z $ANTW_HOME ]]; then |
| function copydir { | |
| pwd | tr -d "\r\n" | pbcopy | |
| } |
| function copyfile { | |
| [[ "$#" != 1 ]] && return 1 | |
| local file_to_copy=$1 | |
| cat $file_to_copy | pbcopy | |
| } |
| function cloneGit { | |
| local folder=$1 | |
| local url=$2 | |
| if [ ! -d "$folder" ] | |
| then | |
| git clone $url $folder | |
| fi | |
| } | |
| function enableCustomTheme { |
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="" | |
| # Example aliases |
| (require 'erc-services) | |
| (erc-services-mode 1) | |
| (eval-after-load "erc" | |
| '(progn | |
| (setq erc-prompt-for-nickserv-password ""))) | |
| ;; Set autoconnect networks |