| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package NVMPL::Shell::Zsh; |
|
2
|
2
|
|
|
2
|
|
3244
|
use strict; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
84
|
|
|
3
|
2
|
|
|
2
|
|
14
|
use warnings; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
141
|
|
|
4
|
2
|
|
|
2
|
|
13
|
use feature 'say'; |
|
|
2
|
|
|
|
|
8
|
|
|
|
2
|
|
|
|
|
278
|
|
|
5
|
2
|
|
|
2
|
|
66
|
use NVMPL::Utils qw(log_info); |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
384
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub update_path { |
|
8
|
1
|
|
|
1
|
0
|
1707
|
my ($bin_path) = @_; |
|
9
|
1
|
|
|
|
|
48
|
say "export PATH=\"$bin_path:\$PATH\""; |
|
10
|
|
|
|
|
|
|
} |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub init_snippet { |
|
13
|
1
|
|
|
1
|
0
|
4161
|
return <<'ZSH'; |
|
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
|
|
|
|
|
|
|
ZSH |
|
18
|
|
|
|
|
|
|
} |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |