path is used when no commands are running

This commit is contained in:
Sweenu 2018-04-07 11:48:19 +02:00
parent 695ef2e50f
commit 2889a8005c
2 changed files with 3 additions and 7 deletions

View File

@ -105,7 +105,7 @@ set -g theme_newline_cursor yes
**Title options**
- `theme_title_display_process`. By default theme doesn't show current process name in terminal title. If you want to show it, just set to `yes`.
- `theme_title_display_command`. Use `yes` to show current running command in title (this overrides whatever value `theme_title_display_process` has).
- `theme_title_display_command`. Use `yes` to show current running command in title or show the path if no command is running (this overrides whatever value `theme_title_display_process` and `theme_title_display_path` have).
- `theme_title_display_path`. Use `no` to hide current working directory from title.
- `theme_title_display_user`. Set to `yes` to show the current user in the tab title (unless you're the default user).
- `theme_title_use_abbreviated_path`. Default is `yes`. This means your home directory will be displayed as `~` and `/usr/local` as `/u/local`. Set it to `no` if you prefer full paths in title.

View File

@ -33,13 +33,9 @@ function fish_title
and echo ' '
and __display_path
else
if [ "$theme_title_display_path" != 'no' ]
__display_path
echo ' '
end
if [ $_ != 'fish' ]
echo $argv[1]
end
else
__display_path
end
end