diff --git a/.bashrc b/.bashrc
index 335ed3ed34fbe144cbeac553ea07a02edc65eb49..31675f19ce5fa3c092470fdbb7bfaffe5cb8d71a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -296,7 +296,7 @@ flatpak_kill () {
 
 # shellcheck disable=SC2120
 prune_ssh_sockets () {
-    ( [ "${1:-}" != '-f' ] && [ "${1:-}" != '--force' ] ) || killall -v ssh || true
+    { [ "${1:-}" != '-f' ] && [ "${1:-}" != '--force' ]; } || killall -v ssh || true
     find ~/.ssh/ \
         -maxdepth 1 \
         -type s \