Parcourir la source

Use proper directory name also for exit status temp

Alois Mahdal il y a 2 ans
Parent
révision
26efba26bc
3 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 1
    1
      dotfiles/bashum/head.bashrc
  2. 2
    2
      dotfiles/bashum/main.bashrc
  3. 2
    2
      dotfiles/bashum/post.bashrc

+ 1
- 1
dotfiles/bashum/head.bashrc Voir le fichier

1
 #!/bin/bash
1
 #!/bin/bash
2
 
2
 
3
-mkdir -p /var/tmp/bash-rv
3
+mkdir -p /var/tmp/bashum-rv
4
 
4
 
5
 BASHUM_TASK_CTX=false
5
 BASHUM_TASK_CTX=false
6
 BASHUM_BMO_NAG=false
6
 BASHUM_BMO_NAG=false

+ 2
- 2
dotfiles/bashum/main.bashrc Voir le fichier

667
     xo | pad4 | xii
667
     xo | pad4 | xii
668
 }
668
 }
669
 
669
 
670
-RV_TMP="/tmp/bash-rv"
671
-mkdir -p "$RV_TMP"
670
+BASHUM__RV_TMP="/tmp/bashum-rv"
671
+mkdir -p "$BASHUM__RV_TMP"
672
 
672
 
673
 ### ...... ###
673
 ### ...... ###
674
 ### OTHERS ###
674
 ### OTHERS ###

+ 2
- 2
dotfiles/bashum/post.bashrc Voir le fichier

9
     local rvfile        # path to return value cache file
9
     local rvfile        # path to return value cache file
10
     local lastrv        # actual last return value
10
     local lastrv        # actual last return value
11
     local do_rm         # true if we should remove the cache
11
     local do_rm         # true if we should remove the cache
12
-    rvfile="$RV_TMP/$$.lastrv"
12
+    rvfile="$BASHUM__RV_TMP/$$.lastrv"
13
     lastrv="$(cat "$rvfile")"
13
     lastrv="$(cat "$rvfile")"
14
     do_rm=false
14
     do_rm=false
15
     test "$1" == "-r" && do_rm=true
15
     test "$1" == "-r" && do_rm=true
23
 }
23
 }
24
 
24
 
25
 __bashum__save_rv() {
25
 __bashum__save_rv() {
26
-    local rvfile="$RV_TMP/$$.lastrv"
26
+    local rvfile="$BASHUM__RV_TMP/$$.lastrv"
27
     [ -w "${rvfile%/*}" ] && echo "$1" > "$rvfile"
27
     [ -w "${rvfile%/*}" ] && echo "$1" > "$rvfile"
28
 }
28
 }
29
 
29