1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-26 01:07:11 -07:00

Merge branch 'master' of github.com:notwa/rc

This commit is contained in:
Connor Olding 2017-05-26 02:25:10 +00:00
commit ed39957647
3 changed files with 7 additions and 6 deletions

View File

@ -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"

View File

@ -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'
}

4
sh/dfu
View File

@ -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}'