浏览代码

set TMPDIR

pull/1/head
10sr 10 年前
父节点
当前提交
2242ceb273
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. +5
    -2
      shrc

+ 5
- 2
shrc 查看文件

@@ -158,6 +158,8 @@ then
TERM=screen-256color
fi

# set TMP, TEMP, TMPDIR

if test -z "$TMP"
then
if test -n "$TMPDIR"
@@ -170,9 +172,10 @@ then
export TMP=/tmp
fi
fi
__match "$TMP" "${USER}-tmp" >/dev/null || export TMP="${TMP}/${USER}-tmp"
export TEMP="$TMP"
__match "$TMP" "${USER}-tmp" >/dev/null || TMP="${TMP}/${USER}-tmp"
test -d "$TMP" || mkdir -p "$TMP"
export TEMP=$TMP
export TMPDIR=$TMP

if ! $iswindows && null type stty
then


正在加载...
取消
保存