Browse Source

Mute unavoidable ShellCheck warnings

Alois Mahdal 8 years ago
parent
commit
18ce372a5d
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      dotfiles/bash/post.bashrc

+ 4
- 0
dotfiles/bash/post.bashrc View File

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