Browse Source

Move barh-rv temppdir path to main.bashrc

Alois Mahdal 10 years ago
parent
commit
d6b74c1d47
2 changed files with 5 additions and 2 deletions
  1. 3
    0
      dotfiles/bash/main.bashrc
  2. 2
    2
      dotfiles/bash/post.bashrc

+ 3
- 0
dotfiles/bash/main.bashrc View File

49
 alias sc='se --direction=encz.cz'
49
 alias sc='se --direction=encz.cz'
50
 alias lsblk='lsblk -o +UUID,LABEL'
50
 alias lsblk='lsblk -o +UUID,LABEL'
51
 
51
 
52
+RV_TMP="/var/tmp/bash-rv"
53
+mkdir -p "$RV_TMP"
54
+
52
 ### ...... ###
55
 ### ...... ###
53
 ### OTHERS ###
56
 ### OTHERS ###
54
 ### '''''' ###
57
 ### '''''' ###

+ 2
- 2
dotfiles/bash/post.bashrc View File

9
 ### '''' ###
9
 ### '''' ###
10
 
10
 
11
 __make_ps1d() {
11
 __make_ps1d() {
12
-    local rvfile="/var/tmp/bash-rv/$$.lastrv"
12
+    local rvfile="$RV_TMP/$$.lastrv"
13
     local lastrv=$(cat $rvfile)
13
     local lastrv=$(cat $rvfile)
14
     local do_rm=false
14
     local do_rm=false
15
     test "$1" == "-r" && do_rm=true
15
     test "$1" == "-r" && do_rm=true
23
 }
23
 }
24
 
24
 
25
 __save_rv() {
25
 __save_rv() {
26
-    local rvfile="/var/tmp/bash-rv/$$.lastrv"
26
+    local rvfile="$RV_TMP/$$.lastrv"
27
     [ -w ${rvfile%/*} ] && echo $1 > $rvfile
27
     [ -w ${rvfile%/*} ] && echo $1 > $rvfile
28
 }
28
 }
29
 
29