-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify scripts to stream terminal title changes (#1095)
* Modify scripts to stream terminal title changes Adding the capabilities to signal terminal title changes based on the command that is being executed * Fixes * Review comments * Update src/common-utils/devcontainer-feature.json Co-authored-by: Samruddhi Khandale <[email protected]> * Update src/common-utils/scripts/bash_theme_snippet.sh Co-authored-by: Samruddhi Khandale <[email protected]> * Update src/common-utils/scripts/rc_snippet.sh Co-authored-by: Samruddhi Khandale <[email protected]> * Remove RC * Adding tests * Update test/common-utils/scenarios.json * Update src/common-utils/scripts/bash_theme_snippet.sh * Test fixes --------- Co-authored-by: Samruddhi Khandale <[email protected]> Co-authored-by: Samruddhi Khandale <[email protected]>
- Loading branch information
1 parent
b45b199
commit 34c3a51
Showing
7 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Optional: Import test library | ||
source dev-container-features-test-lib | ||
|
||
# Definition specific tests | ||
. /etc/os-release | ||
|
||
# Make sure bashrc is applied | ||
source /root/.bashrc | ||
|
||
check "check_term_is_not_set" test !"$TERM" | ||
check "check_prompt_command_not_set" test !"$PROMPT_COMMAND" | ||
|
||
# Report result | ||
reportResults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Optional: Import test library | ||
source dev-container-features-test-lib | ||
|
||
# Definition specific tests | ||
. /etc/os-release | ||
|
||
# Make sure bashrc is applied | ||
source /root/.bashrc | ||
|
||
check "check_term_is_set" test "$TERM" = "xterm" | ||
check "check_term_is_set" test "$PROMPT_COMMAND" = "precmd" | ||
|
||
# Report result | ||
reportResults |