2025-06-24 12:46:21 +05:30
|
|
|
package alias
|
|
|
|
|
|
2026-05-12 22:27:05 +05:30
|
|
|
import "fmt"
|
|
|
|
|
|
2025-06-24 12:46:21 +05:30
|
|
|
type fishShell struct{}
|
|
|
|
|
|
|
|
|
|
var _ Shell = &fishShell{}
|
|
|
|
|
|
|
|
|
|
func NewFishShell() (*fishShell, error) {
|
|
|
|
|
return &fishShell{}, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f fishShell) Source(rcPath string) string {
|
|
|
|
|
return defaultShellSource(rcPath)
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-12 22:27:05 +05:30
|
|
|
func (f fishShell) PathExport(binDir string) string {
|
|
|
|
|
return fmt.Sprintf("%s\nfish_add_path --prepend \"%s\" # PMG shims\n", commentForRemovingShellShims, binDir)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-24 12:46:21 +05:30
|
|
|
func (f fishShell) Name() string {
|
|
|
|
|
return "fish"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f fishShell) Path() string {
|
|
|
|
|
return ".config/fish/config.fish"
|
|
|
|
|
}
|