@@ -112,7 +112,7 @@ func New(config AliasConfig, rcFileManager RcFileManager) *AliasManager {
112112// Install creates the RC file with aliases and sources it in shell configurations.
113113func (a * AliasManager ) Install () error {
114114 aliases := a .buildAliases ()
115- rcPath , err := a .rcFileManager .Create (aliases )
115+ _ , err := a .rcFileManager .Create (aliases )
116116 if err != nil {
117117 return fmt .Errorf ("failed to create alias file: %w" , err )
118118 }
@@ -122,10 +122,6 @@ func (a *AliasManager) Install() error {
122122 return fmt .Errorf ("failed to update shell configs: %w" , err )
123123 }
124124
125- fmt .Printf ("%s %s\n " , ui .Colors .Green ("✓" ), "PMG aliases installed successfully" )
126- fmt .Printf (" %s\n " , ui .Colors .Dim (fmt .Sprintf ("Created: %s" , rcPath )))
127- fmt .Printf (" %s\n " , ui .Colors .Dim ("Restart your terminal or source your shell to use the new aliases" ))
128-
129125 return nil
130126}
131127
@@ -143,6 +139,11 @@ func (a *AliasManager) Remove() error {
143139 return nil
144140}
145141
142+ // GetRcPath returns the path to the alias RC file managed by AliasManager.
143+ func (a * AliasManager ) GetRcPath () string {
144+ return a .rcFileManager .GetRcPath ()
145+ }
146+
146147// IsInstalled checks if the PMG aliases are sourced in any of the shell config files.
147148func (a * AliasManager ) IsInstalled () (bool , error ) {
148149 homeDir , err := os .UserHomeDir ()
0 commit comments