From 2d545c651d76ffad5469f309528697724f192c84 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 6 Mar 2022 13:15:03 +0100 Subject: [PATCH] fish_title: Make directory shortening consistent I have no idea why this kept one component in the one case and none in the other. Because we already aggressively shorten the command, we can keep the directory. --- share/functions/fish_title.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/fish_title.fish b/share/functions/fish_title.fish index aa73ac6f4..91519b90f 100644 --- a/share/functions/fish_title.fish +++ b/share/functions/fish_title.fish @@ -8,7 +8,7 @@ function fish_title # 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] - echo -- $ssh (string sub -l 20 -- $argv[1]) (prompt_pwd -d 1 -D 0) + echo -- $ssh (string sub -l 20 -- $argv[1]) (prompt_pwd -d 1 -D 1) else # Don't print "fish" because it's redundant set -l command (status current-command)