Browse Source

Use $HOME/.var/run for some runtime files #3

pull/5/head
10sr 10 years ago
parent
commit
6ef2e22f09
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      shrc

+ 5
- 2
shrc View File

@@ -31,6 +31,9 @@ __cr=$'\r'
test -n "$TMP" || export TMP=/tmp/${USER}-tmp
mkdir -p "$TMP"

__homerun="$HOME/.var/run"
mkdir -p "$__homerun"

##########################
# system type

@@ -62,7 +65,7 @@ fi

#########################
# system detection
__system_shrc="$TMP/system.shrc"
__system_shrc="$__homerun/system.shrc"

if test -f "$__system_shrc"
then
@@ -1039,7 +1042,7 @@ __my_ps1_ipaddr(){
}

__my_ps1_bttry(){
___bst="${TMP}/batterystatus"
___bst="$__homerun/batterystatus"
if test -z "$DISPLAY" && ! $iswindows
then
test -f $___bst && ___bstr="$(cat $___bst)"


Loading…
Cancel
Save