Workspace Manager1.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

tmuxp.workspace.options.shell_is_zsh

tmuxp.workspace.options.shell_is_zsh ( shell: str | None, ) → bool

Return True when shell names the zsh shell.

Examples#

>>> shell_is_zsh("/usr/bin/zsh")
True
>>> shell_is_zsh("/bin/bash")
False
>>> shell_is_zsh(None)
False
Parameters
  • shell (str | None) # – a shell path or name (e.g. /usr/bin/zsh)

Returns

bool

Esc

Type to search.

Reference previewOpen reference