mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
gst-env: Set the prompt for fish to be same as bash
This commit is contained in:
parent
675cec1ed2
commit
e13e6758e3
1 changed files with 7 additions and 0 deletions
|
@ -390,6 +390,13 @@ if __name__ == "__main__":
|
||||||
# like other shells such as bash and zsh.
|
# like other shells such as bash and zsh.
|
||||||
# See: https://gitlab.freedesktop.org/gstreamer/gst-build/issues/18
|
# See: https://gitlab.freedesktop.org/gstreamer/gst-build/issues/18
|
||||||
signal.signal(signal.SIGINT, lambda x, y: True)
|
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:
|
try:
|
||||||
exit(subprocess.call(args, close_fds=False,
|
exit(subprocess.call(args, close_fds=False,
|
||||||
env=get_subprocess_env(options, gst_version)))
|
env=get_subprocess_env(options, gst_version)))
|
||||||
|
|
Loading…
Reference in a new issue