| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package NVMPL::Shell::Bash; |
|
2
|
3
|
|
|
3
|
|
371527
|
use strict; |
|
|
3
|
|
|
|
|
5
|
|
|
|
3
|
|
|
|
|
123
|
|
|
3
|
3
|
|
|
3
|
|
27
|
use warnings; |
|
|
3
|
|
|
|
|
7
|
|
|
|
3
|
|
|
|
|
299
|
|
|
4
|
3
|
|
|
3
|
|
51
|
use feature 'say'; |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
446
|
|
|
5
|
3
|
|
|
3
|
|
398
|
use NVMPL::Utils qw(log_info); |
|
|
3
|
|
|
|
|
6
|
|
|
|
3
|
|
|
|
|
525
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub update_path { |
|
8
|
1
|
|
|
1
|
0
|
1403
|
my ($bin_path) = @_; |
|
9
|
1
|
|
|
|
|
43
|
say "export PATH=\"$bin_path:\$PATH\""; |
|
10
|
|
|
|
|
|
|
} |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub init_snippet { |
|
13
|
2
|
|
|
2
|
0
|
2665
|
return <<'BASH'; |
|
14
|
|
|
|
|
|
|
if [ -d "$HOME/.nvm-pl/install/versions/current/bin" ]; then |
|
15
|
|
|
|
|
|
|
export PATH="$HOME/.nvm-pl/install/versions/current/bin:$PATH" |
|
16
|
|
|
|
|
|
|
fi |
|
17
|
|
|
|
|
|
|
BASH |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |