gitbash

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package gitbash finds the bash that ships with Git for Windows.

Lectern's command lines are POSIX shell, and on Windows the one shell every agent machine already has is Git for Windows' bash: Git is a requirement, and Claude Code needs Git Bash on Windows too. A bare `bash` on PATH is avoided on purpose — C:\Windows\System32\bash.exe is the WSL launcher, which would run the command in a Linux distribution, not on this machine.

Index

Constants

View Source
const Env = "LECTERN_BASH"

Env names a bash.exe to use instead of searching.

Variables

This section is empty.

Functions

func Find

func Find() (string, error)

Find returns the path of Git for Windows' bash.exe.

func NativePath

func NativePath(p string) string

NativePath turns a path a Git Bash command line used into the Windows path of the same file, so a file Lectern writes from Go and one a command line then reads are the same file: /c/Users/me is C:\Users\me, /tmp is the user's temp directory (Git for Windows mounts it there), and any other absolute path lies under Git's own installation, which is Git Bash's /.

Types

This section is empty.

Jump to

Keyboard shortcuts

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