diff --git a/zsh/.zshrc b/zsh/.zshrc index 98fcd15..e59a9fb 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -92,7 +92,7 @@ sshl() { } toolbox() { - if [[ $@ =~ (enter) && ! $@ =~ (-r) && ! $@ =~ (--release) && ! $@ =~ (-d) && ! $@ =~ (--distro) ]]; then + if [[ $@ =~ (enter) && ! $@ =~ (-r|--release|-d|--distro) ]]; then CONTAINER=$(sed -E -e 's/enter|--container|-c|toolbox|\t|\n|\s//g' <<< $@)