()
| 42 | } |
| 43 | |
| 44 | func (d *Devbox) refreshCmd() string { |
| 45 | devboxCmd := fmt.Sprintf("shellenv --preserve-path-stack -c %q", d.projectDir) |
| 46 | if d.isGlobal() { |
| 47 | devboxCmd = "global shellenv --preserve-path-stack -r" |
| 48 | } |
| 49 | if isFishShell() { |
| 50 | return fmt.Sprintf(`eval (devbox %s | string collect)`, devboxCmd) |
| 51 | } |
| 52 | return fmt.Sprintf(`eval "$(devbox %s)" && hash -r`, devboxCmd) |
| 53 | } |
| 54 | |
| 55 | func (d *Devbox) refreshAlias() string { |
| 56 | if isFishShell() { |
no test coverage detected