Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bash_kernel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"display_name":"Bash",
"language":"bash",
"codemirror_mode":"shell",
"env":{"PS1": "$"}
"env":{"PS1": "$", "VTE_VERSION": ""}
}

def install_my_kernel_spec(user=True, prefix=None):
Expand Down
4 changes: 3 additions & 1 deletion bash_kernel/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ def _start_bash(self):
# environment variable, but not when bash displays the prompt.
ps1 = self.unique_prompt + u'\[\]' + ">"
ps2 = self.unique_prompt + u'\[\]' + "+"
prompt_change = u"PS1='{0}' PS2='{1}' PROMPT_COMMAND=''".format(ps1, ps2)
prompt_change = (
u"PS1='{0}' PS2='{1}' PS0='' PROMPT_COMMAND=''"
).format(ps1, ps2)
# Using IREPLWrapper to get incremental output
self.bashwrapper = IREPLWrapper(child, u'\$', prompt_change, self.unique_prompt,
extra_init_cmd="export PAGER=cat",
Expand Down