Some minor fixes

This commit is contained in:
Alexander Gehrke 2013-05-16 13:14:41 +02:00
parent 9e8334698c
commit 0ddc13eaeb
3 changed files with 9 additions and 5 deletions

View file

@ -44,11 +44,11 @@ aliases() {
# per directory configuration
cd(){
if [ -e ".zout" ]; then
. ".zout"
. "./.zout"
fi
builtin cd $*
if [ -e ".zin" ]; then
. ".zin"
. "./.zin"
fi
}

View file

@ -29,7 +29,7 @@ if [[ "`tput colors`" == "256" ]] || [[ "`tput colors`" == "88" ]] ; then
usercolor_mod=28
fi
if [ ! -z $SSH_CLIENT ]; then
if [ ! -z $SSH_CLIENT ] || [ ! -z $SSH_CONNECTION ]; then
usercolor_base=$((usercolor_base + usercolor_mod))
hostcolor="%{${FG[226]}%}"
else

View file

@ -1,5 +1,9 @@
#!/bin/zsh
if [ -n "$WTF_WORK_END" -a -e $HOME/.wtf ] && which wtf &>/dev/null; then
if [ -e $HOME/.wtf ] && which wtf &>/dev/null; then
if [ -n "$WTF_WORK_END" ]; then
export WTF_REST=$(wtf raw -d $WTF_WORK_END diff);
else
export WTF_REST=$(wtf raw diff);
fi
export WTF_REST_FORMATTED="$(printf "%.2f days\n" $((WTF_REST/28800.0)))"
fi