IlanCosman/tide

string: shorten: invalid subcommand

rackodo opened this issue · 4 comments

Describe the bug

Entire prompt broken by invalid subcommand

Upon making a newline, this error block appears.

string: shorten: invalid subcommand

~/.config/fish/functions/_tide_item_git.fish (line 2):
    if git branch --show-current 2>/dev/null | string shorten -"$tide_git_truncation_strategy"m$tide_git_truncation_length | read -l location
       ^
in function '_tide_item_git'
	called on line 4 of file ~/.config/fish/functions/_tide_2_line_prompt.fish
in function '_tide_2_line_prompt'
in command substitution

Steps to reproduce

  1. Install using fisher.
  2. See error

Screenshots

Screenshot 2023-10-23 at 8 54 37 am

Environment

Output of tide bug-report:

fish version: 3.6.1 (edit: updated from 3.5.1)
tide version: 6.0.1
term: xterm-256color
os: macOS Sonoma 14.0
terminal emulator: iTerm
fish startup: 19.34 millis
fisher plugins: jorgebucaran/fisher dracula/fish ilancosman/tide@v6

Additional context

Old fish version

My fish version is 3.6.1. Isn't that the latest version?

Your tide bug-report says 3.5.1.

My mistake. Reinstalled fish, now it's fine. Thanks 👍🏻