mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-03 02:50:47 -05:00
fish: include more of the current path in title
This commit is contained in:
parent
629a27c3b6
commit
005b1086fc
@ -20,14 +20,14 @@ if status is-interactive
|
||||
# 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 1)
|
||||
echo -- $ssh (string sub -l 20 -- $argv[1]) (prompt_pwd -d 1 -D 4)
|
||||
else
|
||||
# Don't print "fish" because it's redundant
|
||||
set -l command (status current-command)
|
||||
if test "$command" = fish
|
||||
set command
|
||||
end
|
||||
echo -- $ssh (string sub -l 20 -- $command) (prompt_pwd -d 1 -D 1)
|
||||
echo -- $ssh (string sub -l 20 -- $command) (prompt_pwd -d 1 -D 4)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user