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
#https://github.com/mbauhardt/spowerline | |
#Generated on Wed Sep 10 21:10:28 CEST 2014 | |
# | |
PROMPT=$(echo ' | |
%{$bg[blue]%}%{$fg_bold[red]%}$(true) %(?..%?)%{$reset_color%}%{$bg[$(echo blue)]%}%{$fg[blue]%}$(true && echo -e "\xE2\xAE\x80")%{$reset_color%}%{$bg[blue]%}%{$fg_bold[black]%}$(true) %~%{$reset_color%}%{$bg[$({git rev-parse --is-inside-work-tree &> /dev/null && echo green}||{!git rev-parse --is-inside-work-tree &> /dev/null && echo default})]%}%{$fg[blue]%}$(true && echo -e "\xE2\xAE\x80")%{$reset_color%}%{$bg[green]%}%{$fg_bold[black]%}$(git rev-parse --is-inside-work-tree &> /dev/null && ZSH_THEME_GIT_PROMPT_PREFIX=$(echo -e " \xe2\xad\xa0 ") && ZSH_THEME_GIT_PROMPT_SUFFIX='' && ZSH_THEME_GIT_PROMPT_DIRTY=$(echo -e " \xe2\x9c\x97 ") && ZSH_THEME_GIT_PROMPT_CLEAN='' && git_prompt_info)$(git rev-parse --is-inside-work-tree &> /dev/null && ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=$(echo -e " \xe2\x86\x91 ") && ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE=$(echo -e " \xe2\x86\x93 ") && ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE=$( |
#! /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 copydir { | |
pwd | tr -d "\r\n" | pbcopy | |
} |
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 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 |