io.github.libtmux.Server.Server.ifShell
Java
- Python
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go
- Java
- .NET
- C++ Unavailable
- Swift Unavailable
- Module
- io.github.libtmux.Server
- Declared in
- Server
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Server.java
- Other languages
- Python Ruby Lua TypeScript Rust Go.NET C++ Swift
-
Runs one tmux command or another, according to whether a shell command succeeds.
The choosing happens inside tmux rather than here, which is the point: the condition and both outcomes go out as one request, so nothing can change between asking and acting.
tmux expands
#(...)in the condition before a shell sees it, and shell quoting does not prevent that. Pass any interpolated value throughTmuxFormats#literalunless you mean it to be expanded.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 - .NET
LibTmux.Server.IfShellAsync - C++ no equivalent on
Server - Swift no equivalent on
Server
- Python
0 declared, 0 inherited