mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 01:36:39 +08:00
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.
This commit is contained in:
parent
7b01b4d308
commit
2d545c651d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user