diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-12-19 02:39:01 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-12-19 02:39:01 +0530 |
commit | e13e6758e343d8012a2b15a9621d02f57fcbab93 (patch) | |
tree | 302690ff9db2b7f0238f7ddafefdee5936176108 /gst-env.py | |
parent | 675cec1ed2933faf23c40bfd6e6c069fe0fd6a4c (diff) | |
download | gstreamer-e13e6758e343d8012a2b15a9621d02f57fcbab93.tar.gz |
gst-env: Set the prompt for fish to be same as bash
Diffstat (limited to 'gst-env.py')
-rwxr-xr-x | gst-env.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gst-env.py b/gst-env.py index 64196428be..56d90dddc2 100755 --- a/gst-env.py +++ b/gst-env.py @@ -390,6 +390,13 @@ if __name__ == "__main__": # like other shells such as bash and zsh. # See: https://gitlab.freedesktop.org/gstreamer/gst-build/issues/18 signal.signal(signal.SIGINT, lambda x, y: True) + # Set the prompt + args.append('--init-command') + prompt_cmd = '''functions --copy fish_prompt original_fish_prompt + function fish_prompt + echo -n '[gst-{}] '(original_fish_prompt) + end'''.format(gst_version) + args.append(prompt_cmd) try: exit(subprocess.call(args, close_fds=False, env=get_subprocess_env(options, gst_version))) |