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,6 +49,9 @@ alias grepr='grep -nr . --exclude-dir=".git" -e '
49 49
 alias sc='se --direction=encz.cz'
50 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 56
 ### OTHERS ###
54 57
 ### '''''' ###

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

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