mirror of
https://github.com/notwa/rc
synced 2024-07-01 03:07:13 -07:00
Merge branch 'master' of github.com:notwa/rc
This commit is contained in:
commit
ed39957647
|
@ -6,7 +6,7 @@ umask 022 # don't inherit last umask. pip will break itself.
|
||||||
[ -z "$MSYSTEM" ] && cdrive="/cygdrive/c" || cdrive="/c"
|
[ -z "$MSYSTEM" ] && cdrive="/cygdrive/c" || cdrive="/c"
|
||||||
hash -d cyg="$cdrive/cygwin/home/$USER"
|
hash -d cyg="$cdrive/cygwin/home/$USER"
|
||||||
hash -d msys="$cdrive/msys64/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 c="$cdrive"
|
||||||
hash -d win="$cdrive/Users/$USER"
|
hash -d win="$cdrive/Users/$USER"
|
||||||
hash -d mm="$cdrive/Program Files (x86)/mupen64plus/mm"
|
hash -d mm="$cdrive/Program Files (x86)/mupen64plus/mm"
|
||||||
|
|
|
@ -150,9 +150,10 @@ fi
|
||||||
# note: zsh adds a % symbol to newline-less output, so bash prompt is overkill
|
# note: zsh adds a % symbol to newline-less output, so bash prompt is overkill
|
||||||
function {
|
function {
|
||||||
local good='green'
|
local good='green'
|
||||||
[[ "${(L)HOST}" == "banshee" ]] && good='cyan'
|
local host="${(L)HOST}"
|
||||||
[[ "${(L)HOST}" == "spectre" ]] && good='white'
|
[[ "$host" == "neobanshee" ]] && good='cyan'
|
||||||
[[ "${(L)HOST}" == "wraith" ]] && good='yellow'
|
[[ "$host" == "spectre" ]] && good='white'
|
||||||
|
[[ "$host" == "wraith" ]] && good='yellow'
|
||||||
PROMPT='%{'$'\e''[10m%}%b%(?.%K{'"$good"'}.%K{red})%15F%#%f%k '
|
PROMPT='%{'$'\e''[10m%}%b%(?.%K{'"$good"'}.%K{red})%15F%#%f%k '
|
||||||
RPROMPT='%8F%h%b'
|
RPROMPT='%8F%h%b'
|
||||||
}
|
}
|
||||||
|
|
4
sh/dfu
4
sh/dfu
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
df -xtmpfs | awk '
|
df -xtmpfs | awk '
|
||||||
NR==1{printf"%-20s %7s %7s %7s\n","Filesystem","Used","Max","Misc"}
|
NR==1{printf"%-20s %7s %7s %7s %7s\n","Filesystem","Used","Max","Left","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 %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}'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user