diff --git a/share/functions/fish_title.fish b/share/functions/fish_title.fish index 91519b90f..81ebe1af3 100644 --- a/share/functions/fish_title.fish +++ b/share/functions/fish_title.fish @@ -4,7 +4,7 @@ function fish_title # If we're connected via ssh, we print the hostname. set -l ssh 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. # This is used by `fg` to show the true process name, among others. if set -q argv[1]