Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
f5f44048
Commit
f5f44048
authored
Oct 04, 2022
by
Matan Ziv-Av
Committed by
Kurt Hindenburg
Oct 21, 2022
Browse files
Include last command exit code in bash PS1 for semantic integration.
parent
f1cd6111
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ViewManager.cpp
View file @
f5f44048
...
...
@@ -506,7 +506,7 @@ void ViewManager::semanticSetupBash()
Q_ASSERT
(
activeSession
);
activeSession
->
sendTextToTerminal
(
QStringLiteral
(
R"(if [[ ! $PS1 =~ 133 ]] ; then
PS1='\[\e]133;L\a\]\[\e]133;A\a\]'$PS1'\[\e]133;B\a\]' ;
PS1='\[\e]133;L\a\]\[\e]133;
D;$?\]\[\e]133;
A\a\]'$PS1'\[\e]133;B\a\]' ;
PS2='\[\e]133;A\a\]'$PS2'\[\e]133;B\a\]' ;
PS0='\[\e]133;C\a\]' ; fi)"
),
QChar
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment