variable

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package variable provides commands for iTerm2 variable management.

Variables in iTerm2 store session and application state that can be accessed and modified programmatically. This package provides commands to:

  • list: List all available variables and their scopes
  • get: Retrieve variable values
  • set: Modify variable values
  • watch: Monitor variable changes in real-time

Variables can be session-specific, tab-specific, window-specific, or application-wide. They provide a mechanism for storing and sharing state between different parts of iTerm2 and external automation.

Examples:

it2 variable list
it2 variable get user.currentDirectory
it2 variable set user.myVar "value"
it2 variable watch user.currentDirectory

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the variable command with all subcommands.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL