Skip to content

Suggested script seems to not work in fish shell #296

@corpooo

Description

@corpooo

What happened?

When I use the suggested script to launch a session from tmux, I expected it to work in fish too but nothing happened when pressing the keybinding.

This is the binding:

bind o run-shell 'sesh connect "$(
	sesh list | fzf \
		--no-sort --border-label " sesh " --prompt "⚡ " \
		--header "  ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find " \
		--bind "tab:down,btab:up" \
		--bind "ctrl-a:change-prompt(⚡  )+reload(sesh list)" \
		--bind "ctrl-t:change-prompt(🪟  )+reload(sesh list -t)" \
		--bind "ctrl-g:change-prompt(⚙️  )+reload(sesh list -c)" \
		--bind "ctrl-x:change-prompt(📁  )+reload(sesh list -z)" \
		--bind "ctrl-f:change-prompt(🔎  )+reload(fd -H -d 2 -t d -E .Trash . ~)" \
		--bind "ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡  )+reload(sesh list)" \
		--bind "ctrl-d:execute(tmux kill-session -t {})+change-prompt(⚡  )+reload(sesh list)"
)"'

It worked perfectly fine when I used zsh as a shell, but after switching to fish, it stopped working.
Not sure if it's helpful, but simply running sesh list | fzf from the binding, it prints:

'sesh list | fzf' returned 2

Version

sesh version 2.18.1

Relevant log output

No response

Reviewed

  • Reviewed existing issues and made sure this bug has not already been submitted.
  • I have read the documentation and understand how sesh works before submitting this bug

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions