diff --git a/src/shell/completer.rs b/src/shell/completer.rs
index 1f8f37c717fd3c08fef998023590bc14060b5ccb..68a21725bbac98c58be81596ef47c65545ee712f 100644
--- a/src/shell/completer.rs
+++ b/src/shell/completer.rs
@@ -115,7 +115,10 @@ fn escape(input: &str) -> String {
             | b'>'
             | b';'
             | b'"'
-            | b'\'' => output.push(b'\\'),
+            | b'\''
+            | b'#'
+            | b'^'
+            | b'*' => output.push(b'\\'),
             _ => (),
         }
         output.push(character);