andreyorst / fzf.kak

FZF for Kakoune
MIT License
143 stars 33 forks source link

kak_client_env_TMUX erroring out when calling fzf-ctags #91

Closed MrOneTwo closed 3 years ago

MrOneTwo commented 3 years ago

https://github.com/andreyorst/fzf.kak/blob/1b3a3beebbe7134e671fde2ef2f4242b34ae2c60/rc/modules/fzf-ctags.kak#L933

This line causes problems for me (sh: 36: kak_client_env_TMUX: parameter not set or null). Changing ${kak_client_env_TMUX:?} to ${kak_client_env_TMUX} fixes the problem. What's the meaning of the :? here?

andreyorst commented 3 years ago

https://github.com/andreyorst/fzf.kak/blob/1b3a3beebbe7134e671fde2ef2f4242b34ae2c60/rc/modules/fzf-ctags.kak#L933

This line causes problems for me (sh: 36: kak_client_env_TMUX: parameter not set or null). Changing ${kak_client_env_TMUX:?} to ${kak_client_env_TMUX} fixes the problem. What's the meaning of the :? here?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andreyorst/fzf.kak/issues/91, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUROT37AFJ7OEF4JSMZD4LTTBK7BANCNFSM46Y3LY3A .

oops, you right, I only use kakoune from tmux, so I've forgot that this variable can be empty for others.

:? forces the runtime check that variable is set