From 2c30f4bd9ea79f4b921f6561564ba1fe4e64f073 Mon Sep 17 00:00:00 2001 From: Alexandru Macovei Date: Fri, 24 Apr 2020 20:37:34 +0300 Subject: [PATCH] fix(crystal): Add Crystal module to default prompt order (#1140) --- src/configs/starship_root.rs | 1 + src/modules/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/configs/starship_root.rs b/src/configs/starship_root.rs index 894ede36..948e73dd 100644 --- a/src/configs/starship_root.rs +++ b/src/configs/starship_root.rs @@ -50,6 +50,7 @@ impl<'a> RootModuleConfig<'a> for StarshipRootConfig<'a> { "memory_usage", "aws", "env_var", + "crystal", "cmd_duration", "custom", "line_break", diff --git a/src/modules/mod.rs b/src/modules/mod.rs index 92ee508b..fc8b05ef 100644 --- a/src/modules/mod.rs +++ b/src/modules/mod.rs @@ -103,6 +103,7 @@ pub fn description(module: &str) -> &'static str { } "cmd_duration" => "How long the last command took to execute", "conda" => "The current conda environment, if $CONDA_DEFAULT_ENV is set", + "crystal" => "The currently installed version of Crystal", "directory" => "The current working directory", "docker_context" => "The current docker context", "dotnet" => "The relevant version of the .NET Core SDK for the current directory",