Server.has_session
Return True if session exists.
Source and package
- Qualified name
-
libtmux.Server .has _session - Module
- libtmux
- Declared in
- Server
- Package
- libtmux
- Source
- src/libtmux/server.py
- Other languages
- PowerShell Julia Ruby Lua TypeScriptRustGoJavaC# C++ Swift Kotlin Scala F#
-
- Parameters
-
-
target_session(str) # – session name -
exact(bool) # – match the session name exactly. tmux uses fnmatch by default. Internally prepends=to the session in$ tmux has-session.
-
- Returns
-
bool
- Raises
tmux command
has-sessionIn other ports Whether a session with this name exists
- PowerShell No source-verified PowerShell equivalent is recorded for this operation.
- Julia No source-verified Julia equivalent is recorded for this operation.
- Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
- Rust
- Go
- Java
- C#
- C++ no equivalent on
Server - Swift
- 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.