shell

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliasBlock

func AliasBlock() string

AliasBlock returns the alias block to inject into shell rc files.

func InjectAliases

func InjectAliases(rcPath string) error

InjectAliases adds the alias block to rcPath. Idempotent (replaces existing block).

func MigrateFromCC

func MigrateFromCC(ccSessionsDir, sessionsPath string) ([]string, error)

MigrateFromCC reads sessions from old ~/.claude/cc-sessions/ directory and imports into ctm session store. Returns migrated names.

func RemoveAliases

func RemoveAliases(rcPath string) error

RemoveAliases removes the alias block from rcPath.

func SessionNameCompletion

func SessionNameCompletion() func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

SessionNameCompletion returns a cobra ValidArgsFunction that completes session names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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