mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Use old-school "()" command substitution in fish_title
Because we reload changed function files, a common issue on upgrading to 3.4.0 is that fish_title causes errors. So we simply use the oldschool syntax.
This commit is contained in:
parent
695e20c47f
commit
c5a8764db1
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ function fish_title
|
||||||
# If we're connected via ssh, we print the hostname.
|
# If we're connected via ssh, we print the hostname.
|
||||||
set -l ssh
|
set -l ssh
|
||||||
set -q SSH_TTY
|
set -q SSH_TTY
|
||||||
and set ssh "[$(prompt_hostname | string sub -l 10)]"
|
and set ssh "["(prompt_hostname | string sub -l 10 | string collect)"]"
|
||||||
# An override for the current command is passed as the first parameter.
|
# An override for the current command is passed as the first parameter.
|
||||||
# This is used by `fg` to show the true process name, among others.
|
# This is used by `fg` to show the true process name, among others.
|
||||||
if set -q argv[1]
|
if set -q argv[1]
|
||||||
|
|
Loading…
Reference in a new issue