Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
Path string
Updated bool // false = already present (Add) or line not found (Remove)
}
Result describes what happened to a single profile file.
func Add ¶
Add appends comment and line to the detected shell's primary profile. Only one profile is written to avoid duplication on platforms where multiple profiles are sourced in the same session (e.g. Git Bash sources both .bashrc and .bash_profile). Falls back to the first existing candidate if the shell cannot be detected.
Click to show internal directories.
Click to hide internal directories.