Skip to content

Commit a464e1d

Browse files
authored
ohne subshell
1 parent 9259532 commit a464e1d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bash_kernel/kernel.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ def _start_bash(self):
105105
finally:
106106
signal.signal(signal.SIGINT, sig)
107107

108+
# Disable bracketed paste (see <https://github.com/takluyver/bash_kernel/issues/117>)
109+
self.bashwrapper.run_command("bind 'set enable-bracketed-paste off' >/dev/null 2>&1 || true")
110+
# Set TERM_PROGRAM and TERM_PROGAM_VERSION. See <https://github.com/takluyver/bash_kernel/issues/117#issuecomment-1032738154>
111+
self.bashwrapper.run_command(f"export TERM_PROGRAM='jupyter_bash_kernel'; export TERM_PROGRAM_VERSION='{__version__}';")
108112
# Register Bash function to write image data to temporary file
109113
self.bashwrapper.run_command(image_setup_cmd)
110-
# Set TERM_PROGRAM and TERM_PROGAM_VERSION. See https://github.com/takluyver/bash_kernel/issues/117#issuecomment-1032738154
111-
self.bashwrapper.run_command(f"export TERM_PROGRAM='jupyter_bash_kernel'; export TERM_PROGRAM_VERSION='{__version__}';")
112-
# Disable bracketed paste (see https://github.com/takluyver/bash_kernel/issues/117)
113-
self.bashwrapper.run_command("(bind 'set enable-bracketed-paste off' || true) >/dev/null 2>&1")
114+
114115

115116
def process_output(self, output):
116117
if not self.silent:

0 commit comments

Comments
 (0)