Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

method libtmux-java latest

Shell.choose

Package io.github.libtmux.Shell.choose io.github.libtmux

Runs one tmux command when a shell command succeeds.

View as Markdown

Source and package
Module
io.github.libtmux
Declared in
Shell
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Shell.java
Other languages
Python Ruby Lua TypeScript Rust GoC# C++ Swift Kotlin Scala F#
choose ( condition : String , whenTrue : String ) → void ( condition : String , whenTrue : String , whenFalse : String ) → void
methodoverload2 overloads [source]
Parameters
  • condition ( String ) – a shell command, judged by its exit status (for choose(condition, whenTrue))

  • whenTrue ( String ) – the tmux command to run when the condition succeeds (for choose(condition, whenTrue))

  • whenFalse ( String ) – the tmux command to run when the condition does not succeed (for choose(condition, whenTrue, whenFalse))

tmux command if-shell

In other ports Run one tmux command or another, on a shell test
  • Python libtmux.Server.if_shell
  • Ruby No source-verified Ruby equivalent is recorded for this operation.
  • Lua No source-verified Lua equivalent is recorded for this operation.
  • TypeScript server.Server.ifShell
  • Rust no equivalent on Server
  • Go tmux.Server.IfShell
  • C# LibTmux.Server.IfShellAsync
  • C++ no equivalent on Server
  • Swift no equivalent on Server
  • Kotlin No source-verified Kotlin equivalent is recorded for this operation.
  • Scala No source-verified Scala equivalent is recorded for this operation.
  • F# No source-verified F# equivalent is recorded for this operation.
Esc

Type to search.