Workspace ManagerstableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

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 preview Open reference