Skip to content

Commit

Permalink
fix(debian): add quotes to kclean alias (ohmyzsh#3066)
Browse files Browse the repository at this point in the history
Co-authored-by: la-magra <via.magra@gmail.com>
  • Loading branch information
2 people authored and tinogomes committed Sep 24, 2021
1 parent 83f1065 commit 2b8de1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/debian/debian.plugin.zsh
Expand Up @@ -66,7 +66,7 @@ if [[ $use_sudo -eq 1 ]]; then
alias di="sudo dpkg -i"

# Remove ALL kernel images and headers EXCEPT the one in use
alias kclean='sudo aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))'
alias kclean='sudo aptitude remove -P "?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))"'


# commands using su #########
Expand Down Expand Up @@ -105,7 +105,7 @@ else
alias di='su -lc "dpkg -i" root'

# Remove ALL kernel images and headers EXCEPT the one in use
alias kclean='su -lc "aptitude remove -P ?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))" root'
alias kclean='su -lc "aptitude remove -P \"?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))\"" root'
fi

# Completion ################################################################
Expand Down

0 comments on commit 2b8de1a

Please sign in to comment.