f484f88b4208b6624af1d3572d31edabc73041bf
- Author
- Marc Cornellà <hello@mcornella.com>
- Committer
- Marc Cornellà <hello@mcornella.com>
- Date
Message
fix(debian): add quotes to `kclean` alias (#3066)
Co-authored-by: la-magra <via.magra@gmail.com>
Diff
1diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
2index 68c6df1aec688a5e60a22e729ff93fc03655bc6e..10839678483724b802e8e17741c5ac84eb79bf34 100644
3--- a/plugins/debian/debian.plugin.zsh
4+++ b/plugins/debian/debian.plugin.zsh
5@@ -66,7 +66,7 @@ if [[ $use_sudo -eq 1 ]]; then
6 alias di="sudo dpkg -i"
7
8 # Remove ALL kernel images and headers EXCEPT the one in use
9- alias kclean='sudo aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))'
10+ alias kclean='sudo aptitude remove -P "?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))"'
11
12
13 # commands using su #########
14@@ -105,7 +105,7 @@ else
15 alias di='su -lc "dpkg -i" root'
16
17 # Remove ALL kernel images and headers EXCEPT the one in use
18- alias kclean='su -lc "aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))" root'
19+ alias kclean='su -lc "aptitude remove -P \"?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))\"" root'
20 fi
21
22 # Completion ################################################################