diff --git a/segment_command.go b/segment_command.go index 43363784..3a52e390 100644 --- a/segment_command.go +++ b/segment_command.go @@ -17,6 +17,9 @@ const ( func (c *command) enabled() bool { shell := c.props.getString(ExecutableShell, "bash") + if !c.env.hasCommand(shell) { + return false + } command := c.props.getString(Command, "echo no command specified") if strings.Contains(command, "||") { commands := strings.Split(command, "||")