Use `status current-command` for title

Why:

1. `$_` is marked as deprecated
  https://fishshell.com/docs/current/language.html#envvar-_
2. `$_` contains wrong process name in cases like this one:

  ```fish
  sleep 1000 # `sleep` is the process, now press Ctrl-Z to suspend
  fg # unsuspend it, now `fg` is shown as the process
  ```

  `status current-command` will show `sleep` instead, which makes more
  sense.
pull/354/head
Sergey Slipchenko 5 months ago
parent c2c47dc964
commit c18bd3e917
No known key found for this signature in database
GPG Key ID: 375ECA0AF0329782

@ -18,7 +18,7 @@ function fish_title
__bobthefish_title_user
if [ "$theme_title_display_process" = 'yes' ]
echo $_
status current-command
[ "$theme_title_display_path" != 'no' ]
and echo ' '

Loading…
Cancel
Save