# Alex "oh my ZSH" theme
# Based on the "Sunrise" theme, thanks!
-# 2015-05-05, alex@barton.de
# Color shortcuts; %B sets bold text
B=$fg_no_bold[blue]
# 0_console.plugin.zsh
-# 2015-03-23, alex@barton.de
eval `tset -Qs`
export TERM
# 1_local.plugin.zsh
-# 2015-03-27, alex@barton.de
[ -d "/usr/local/home" -a ! -d "/usr/local/home/$LOGNAME" ] \
&& mkdir "/usr/local/home/$LOGNAME" >/dev/null 2>&1
# 5_dev_env.plugin.zsh
-# 2015-05-05, alex@barton.de
# SSH wrapper
for ssh_wrapper in \
# accounting.plugin.zsh
-# 2015-05-09, alex@barton.de
alias lasth='last | head -n $((LINES-1))'
alias lastf='last | grep -v "^$LOGNAME"'
# boot2docker.plugin.zsh
-# 2015-04-18, alex@barton.de
boot2docker status | fgrep "running" >/dev/null
if [ $? -eq 0 ]; then
# ccache.plugin.zsh
-# 2015-03-27, alex@barton.de
# Setup environment for ccache, if installed
export CCACHE_DIR="$XDG_CACHE_HOME/ccache"
# editor-select.plugin.zsh
-# 2015-04-02, alex@barton.de
if [ -z "$EDITOR" ]; then
# Check "atom"
# keychain.plugin.zsh
-# 2015-03-27, alex@barton.de
eval $(keychain --agents ssh --eval --quick --quiet)
# reminders.plugin.zsh
-# 2015-05-26, alex@barton.de
# Show reminders (once every 60 minutes)
if [ -z `find ~/.last_reminder -mmin -60 2>/dev/null` ]; then
# ssh.plugin.zsh
-# 2015-03-17, alex@barton.de
alias ssh="\ssh -o 'StrictHostKeyChecking yes'"
alias sshnew="\ssh -o 'StrictHostKeyChecking no'"
# thefuck.plugin.zsh
-# 2015-05-26, alex@barton.de
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
# z9_local_conf.plugin.zsh
-# 2015-05-24, alex@barton.de
[ -n "$HOSTNAME" ] || HOSTNAME=$( hostname )
export HOSTNAME