mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
20 lines
506 B
Fish
20 lines
506 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
|