oorja 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,15 +48,16 @@ export const teletypeApp = (options) => {
|
|
|
48
48
|
env: options.process.env,
|
|
49
49
|
});
|
|
50
50
|
setTimeout(() => {
|
|
51
|
-
if (options.shell.
|
|
51
|
+
if (options.shell.endsWith('bash')) {
|
|
52
52
|
stdout.write('Adjusting shell prompt to show streaming indicator\n');
|
|
53
53
|
term.write("export PS1='📡 [streaming] '$PS1\n");
|
|
54
54
|
}
|
|
55
|
-
if (options.shell.
|
|
55
|
+
if (options.shell.endsWith('zsh')) {
|
|
56
56
|
stdout.write('Adjusting shell prompt to show streaming indicator\n');
|
|
57
|
-
|
|
57
|
+
const zshCommand = '_streaming_prompt_precmd() { if [[ "$PROMPT" != *\'📡 [streaming] \'* ]]; then PROMPT="📡 [streaming] $PROMPT"; fi; }; precmd_functions+=(_streaming_prompt_precmd)\n';
|
|
58
|
+
term.write(zshCommand);
|
|
58
59
|
}
|
|
59
|
-
if (options.shell.
|
|
60
|
+
if (options.shell.endsWith('fish')) {
|
|
60
61
|
stdout.write('Adjusting shell prompt to show streaming indicator\n');
|
|
61
62
|
term.write('functions -c fish_prompt __orig_fish_prompt; ' +
|
|
62
63
|
"function fish_prompt; echo -n '📡 [streaming] '; __orig_fish_prompt; end\n");
|
package/oclif.manifest.json
CHANGED