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