mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
22 lines
335 B
Go
22 lines
335 B
Go
package alias
|
|||
|
|
|
||
|
|
type bashShell struct{}
|
||
|
|
|
||
|
|
var _ Shell = &bashShell{}
|
||
|
|
|
||
|
|
func NewBashShell() (*bashShell, error) {
|
||
|
|
return &bashShell{}, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (b bashShell) Source(rcPath string) string {
|
||
|
|
return defaultShellSource(rcPath)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (b bashShell) Name() string {
|
||
|
|
return "bash"
|
||
|
|
}
|
||
|
|
|
||
|
|
func (b bashShell) Path() string {
|
||
|
|
return ".bashrc"
|
||
|
|
}
|