shell

package
v0.2.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(cmd string) error

ExecuteCommand runs a command in a shell

func GetBashHistory added in v0.2.10

func GetBashHistory(limit int) []string

GetBashHistory returns history from bash only

func GetFishHistory added in v0.2.10

func GetFishHistory(limit int) []string

GetFishHistory returns history from fish shell only

func GetHistory added in v0.2.5

func GetHistory(limit int) []string

GetHistory returns recent shell history commands (newest first) Merges history from all available shells

func GetLastCommand

func GetLastCommand() (string, error)

GetLastCommand attempts to get the last command from shell history

func GetZshHistory added in v0.2.10

func GetZshHistory(limit int) []string

GetZshHistory returns history from zsh only

Types

This section is empty.

Jump to

Keyboard shortcuts

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