Files
pmg/internal/alias/shells.go
T

16 lines
398 B
Go
Raw Normal View History

package alias
import "fmt"
type Shell interface {
Source(rcPath string) string
Name() string
Path() string
}
var commentForRemovingShellSource = "# remove aliases by running `pmg setup remove` or deleting the line"
func defaultShellSource(rcPath string) string {
2026-01-01 12:33:52 +05:30
return fmt.Sprintf("%s \n[ -f '%s' ] && source '%s' # PMG source aliases\n", commentForRemovingShellSource, rcPath, rcPath)
}