Browse Source

fix tmpdir

pull/1/head
10sr 12 years ago
parent
commit
6a07e41ec6
2 changed files with 5 additions and 4 deletions
  1. +2
    -3
      bashrc
  2. +3
    -1
      profile

+ 2
- 3
bashrc View File

@@ -48,8 +48,7 @@ export VISUAL="$EDITOR"
export GIT_PAGER="$PAGER"
export GIT_EDITOR="$EDITOR"

export TMP="/tmp/${USER}-tmp"
export TEMP="$TMP"
test -z "$TMP" && export TMP=/tmp/${USER}-tmp
mkdir -p "$TMP"

! iswindows && null type stty && {
@@ -446,7 +445,7 @@ __my_ps1_ipaddr(){
}
__my_ps1_bttry(){
local last=$?
local bst="$TMP/batterystatus"
local bst="${TMP}/batterystatus"
if test -z "$DISPLAY" && ! iswindows
then
test -f $bst && local bstr="$(cat $bst)"


+ 3
- 1
profile View File

@@ -26,4 +26,6 @@ __add_to_path ${HOME}/.local/bin /c/mingw/bin /c/mingw/msys/1.0/bin
type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10
# in my environment powerdown does not work

mkdir -p "/tmp/$USER-tmp"
export TMP="/tmp/${USER}-tmp"
export TEMP="$TMP"
mkdir -p "$TMP"

Loading…
Cancel
Save