mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
path is used when no commands are running
This commit is contained in:
parent
695ef2e50f
commit
2889a8005c
@ -105,7 +105,7 @@ set -g theme_newline_cursor yes
|
|||||||
**Title options**
|
**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_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_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_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.
|
- `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.
|
||||||
|
@ -33,13 +33,9 @@ function fish_title
|
|||||||
and echo ' '
|
and echo ' '
|
||||||
and __display_path
|
and __display_path
|
||||||
else
|
else
|
||||||
if [ "$theme_title_display_path" != 'no' ]
|
|
||||||
__display_path
|
|
||||||
echo ' '
|
|
||||||
end
|
|
||||||
|
|
||||||
if [ $_ != 'fish' ]
|
if [ $_ != 'fish' ]
|
||||||
echo $argv[1]
|
echo $argv[1]
|
||||||
end
|
else
|
||||||
|
__display_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user