diff --git a/home/-shrc b/home/-shrc index aa04fb8..de1691b 100644 --- a/home/-shrc +++ b/home/-shrc @@ -6,7 +6,7 @@ umask 022 # don't inherit last umask. pip will break itself. [ -z "$MSYSTEM" ] && cdrive="/cygdrive/c" || cdrive="/c" hash -d cyg="$cdrive/cygwin/home/$USER" hash -d msys="$cdrive/msys64/home/$USER" -hash -d e="/media/2tb/you" +hash -d e="/media/chibi" hash -d c="$cdrive" hash -d win="$cdrive/Users/$USER" hash -d mm="$cdrive/Program Files (x86)/mupen64plus/mm" diff --git a/home/zshrc b/home/zshrc index 206d9bc..ba637ae 100644 --- a/home/zshrc +++ b/home/zshrc @@ -150,9 +150,10 @@ fi # note: zsh adds a % symbol to newline-less output, so bash prompt is overkill function { local good='green' - [[ "${(L)HOST}" == "banshee" ]] && good='cyan' - [[ "${(L)HOST}" == "spectre" ]] && good='white' - [[ "${(L)HOST}" == "wraith" ]] && good='yellow' + local host="${(L)HOST}" + [[ "$host" == "neobanshee" ]] && good='cyan' + [[ "$host" == "spectre" ]] && good='white' + [[ "$host" == "wraith" ]] && good='yellow' PROMPT='%{'$'\e''[10m%}%b%(?.%K{'"$good"'}.%K{red})%15F%#%f%k ' RPROMPT='%8F%h%b' } diff --git a/sh/dfu b/sh/dfu index 8da3bda..e0f7ad0 100755 --- a/sh/dfu +++ b/sh/dfu @@ -1,4 +1,4 @@ #!/bin/sh df -xtmpfs | awk ' -NR==1{printf"%-20s %7s %7s %7s\n","Filesystem","Used","Max","Misc"} -NR>1{printf"%-20s %7.2f %7.2f %7.2f\n",$6,$3/2^20,($3+$4)/2^20,($2-$4-$3)/2^20}' +NR==1{printf"%-20s %7s %7s %7s %7s\n","Filesystem","Used","Max","Left","Misc"} +NR>1{printf"%-20s %7.2f %7.2f %7.2f %7.2f\n",$6,$3/2^20,($3+$4)/2^20,($4)/2^20,($2-$4-$3)/2^20}'