mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
* Only use if/end blocks for things longer than one line. * Only use inline `[ foo ]; and bar` style when `bar` is `return`. Break the `and`/`or` onto a second line for anything that actually has a side effect. * More consistent use of `echo` flags. * Don't use `pwd` when `$PWD` will do.
22 lines
512 B
Fish
22 lines
512 B
Fish
# You can override some default title options in your config.fish:
|
|
# set -g theme_title_display_process no
|
|
# set -g theme_title_display_path no
|
|
# set -g theme_title_use_abbreviated_path no
|
|
|
|
function fish_title
|
|
if [ "$theme_title_display_process" = 'yes' ]
|
|
echo $_
|
|
|
|
[ "$theme_title_display_path" != 'no' ]
|
|
and echo ' '
|
|
end
|
|
|
|
if [ "$theme_title_display_path" != 'no' ]
|
|
if [ "$theme_title_use_abbreviated_path" = 'no' ]
|
|
echo $PWD
|
|
else
|
|
prompt_pwd
|
|
end
|
|
end
|
|
end
|