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

tmuxp.workspace.options.shell_is_zsh

Python
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

API reference · Markdown

tmuxp.workspace.options.shell_is_zsh ( shell : str | None ) → bool
function [source]
function [source]
tmuxp.workspace.options.shell_is_zsh

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.