Selaa lähdekoodia

Mute unavoidable ShellCheck warnings

Alois Mahdal 8 vuotta sitten
vanhempi
commit
18ce372a5d
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4
    0
      dotfiles/bash/post.bashrc

+ 4
- 0
dotfiles/bash/post.bashrc Näytä tiedosto

@@ -4,6 +4,7 @@
4 4
 ### things to do AFTER host/user-specific settings ###
5 5
 ######################################################
6 6
 
7
+#shellcheck disable=2120
7 8
 __bashum__lastrv() {
8 9
     local rvfile        # path to return value cache file
9 10
     local lastrv        # actual last return value
@@ -33,6 +34,7 @@ __bashum__task_context() {
33 34
     echo -n "|$ctx"
34 35
 }
35 36
 
37
+#shellcheck disable=SC2154 disable=2016
36 38
 __bashum__mkps1() {
37 39
     # these functions must be already defined by ~/.bash/user/*.bashrc
38 40
     # and ~/.bash/host/*.bashrc
@@ -54,6 +56,7 @@ __bashum__mkps1() {
54 56
     echo '$ '                               # obligatory dollar
55 57
 }
56 58
 
59
+#shellcheck disable=SC2154
57 60
 __bashum__mkps2() {
58 61
     echo "$white>$yellow>$lyellow>$normal "
59 62
 }
@@ -89,6 +92,7 @@ __bashum__set_title() {
89 92
     esac
90 93
 }
91 94
 
95
+#shellcheck disable=SC2016
92 96
 __bashum__mkpc() {
93 97
     #
94 98
     # Compose PROMPT_COMMAND body