mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
fix: MacOS MDM based Deployment (#277)
* fix: MacOS MDM deployment script * fix: Handle shell alias for bash on macos * fix: Code review fixes * fix: Code review fixes * feat: Add support for global config file * feat: Add support for global config file * fix: Code review fixes * fix: Avoid blocking CLI for analytics flush
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package alias
|
||||
|
||||
import "path/filepath"
|
||||
|
||||
type zshShell struct{}
|
||||
|
||||
var _ Shell = &zshShell{}
|
||||
@@ -20,6 +22,11 @@ func (z zshShell) Name() string {
|
||||
return "zsh"
|
||||
}
|
||||
|
||||
func (z zshShell) Path() string {
|
||||
return ".zshrc"
|
||||
// zsh reads .zshrc for every interactive shell, login or not, so one file covers it.
|
||||
func (z zshShell) CandidateRcFiles(homeDir string) []string {
|
||||
return []string{filepath.Join(homeDir, ".zshrc")}
|
||||
}
|
||||
|
||||
func (z zshShell) InstallRcFiles(homeDir string, create bool) ([]string, error) {
|
||||
return singleRcFile(filepath.Join(homeDir, ".zshrc"), create)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user