repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/deno.rs
src/modules/deno.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::deno::DenoConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current Deno version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("d...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/git_commit.rs
src/modules/git_commit.rs
use super::{Context, Module, ModuleConfig}; use gix::commit::describe::SelectRef::AllTags; use crate::configs::git_commit::GitCommitConfig; use crate::context::Repo; use crate::formatter::StringFormatter; /// Creates a module with the Git commit in the current directory /// /// Will display the commit hash if the cur...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/shell.rs
src/modules/shell.rs
use super::{Context, Module, ModuleConfig, Shell}; use crate::configs::shell::ShellConfig; use crate::formatter::StringFormatter; pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("shell"); let config: ShellConfig = ShellConfig::try_load(module.config); i...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/python.rs
src/modules/python.rs
use ini::Ini; use std::path::Path; use super::{Context, Module, ModuleConfig}; use crate::configs::python::PythonConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use crate::utils::get_command_string_output; /// Creates a module with the current Python version and, if active, virt...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/pijul_channel.rs
src/modules/pijul_channel.rs
use super::utils::truncate::truncate_text; use super::{Context, Module, ModuleConfig}; use crate::configs::pijul_channel::PijulConfig; use crate::formatter::StringFormatter; /// Creates a module with the Pijul channel in the current directory /// /// Will display the channel lame if the current directory is a pijul r...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/spack.rs
src/modules/spack.rs
use super::{Context, Module, ModuleConfig}; use super::utils::directory::truncate; use crate::configs::spack::SpackConfig; use crate::formatter::StringFormatter; /// Creates a module with the current Spack environment /// /// Will display the Spack environment if `$SPACK_ENV` is set. pub fn module<'a>(context: &'a Co...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/ocaml.rs
src/modules/ocaml.rs
use super::{Context, Module, ModuleConfig}; use std::ops::Deref; use std::path::Path; use std::sync::LazyLock; use crate::configs::ocaml::OCamlConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; #[derive(Debug, PartialEq)] enum SwitchType { Global, Local, } type OpamSwitch =...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/mise.rs
src/modules/mise.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::mise::MiseConfig; use crate::formatter::StringFormatter; /// Creates a module with the current mise config pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("mise"); let config = MiseConfig::try_l...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/singularity.rs
src/modules/singularity.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::singularity::SingularityConfig; use crate::formatter::StringFormatter; /// Creates a module with the current Singularity image /// /// Will display the Singularity image if `$SINGULARITY_NAME` is set. pub fn module<'a>(context: &'a Context) -> Option<Mod...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/raku.rs
src/modules/raku.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::raku::RakuConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use std::ops::Deref; use std::sync::LazyLock; /// Creates a module with the current raku version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/nix_shell.rs
src/modules/nix_shell.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::nix_shell::NixShellConfig; use crate::formatter::StringFormatter; enum NixShellType { Pure, Impure, /// We're in a Nix shell, but we don't know which type. /// This can only happen in a `nix shell` shell (not a `nix-shell` one). Unkno...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/conda.rs
src/modules/conda.rs
use super::{Context, Module, ModuleConfig}; use super::utils::directory::truncate; use crate::configs::conda::CondaConfig; use crate::formatter::StringFormatter; /// Creates a module with the current Conda environment /// /// Will display the Conda environment iff `$CONDA_DEFAULT_ENV` is set. pub fn module<'a>(contex...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/helm.rs
src/modules/helm.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::helm::HelmConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current Helm version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("h...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/rlang.rs
src/modules/rlang.rs
use super::{Context, Module, ModuleConfig}; use crate::formatter::VersionFormatter; use crate::configs::rlang::RLangConfig; use crate::formatter::StringFormatter; use crate::utils::get_command_string_output; pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("rlang...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/pulumi.rs
src/modules/pulumi.rs
#![warn(missing_docs)] use serde::Deserialize; use sha1::{Digest, Sha1}; use std::collections::HashMap; use std::ffi::OsStr; use std::fs::File; use std::io::{BufReader, Read}; use std::path::{Path, PathBuf}; use std::str::FromStr; use yaml_rust2::{Yaml, YamlLoader}; use super::{Context, Module, ModuleConfig}; use crat...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/solidity.rs
src/modules/solidity.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::solidity::SolidityConfig; use crate::formatter::{StringFormatter, VersionFormatter}; use crate::utils::get_command_string_output; pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("solidity"); let...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/terraform.rs
src/modules/terraform.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::terraform::TerraformConfig; use crate::formatter::StringFormatter; use crate::utils; use crate::formatter::VersionFormatter; use std::io; use std::path::PathBuf; /// Creates a module with the current Terraform version and workspace pub fn module<'a>(con...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/git_branch.rs
src/modules/git_branch.rs
use gix::bstr::ByteSlice; use unicode_segmentation::UnicodeSegmentation; use super::{Context, Module, ModuleConfig}; use crate::configs::git_branch::GitBranchConfig; use crate::context::Repo; use crate::formatter::StringFormatter; use crate::modules::git_status::uses_reftables; /// Creates a module with the Git bran...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/fossil_metrics.rs
src/modules/fossil_metrics.rs
use regex::Regex; use super::{Context, Module, ModuleConfig}; use crate::configs::fossil_metrics::FossilMetricsConfig; use crate::formatter::StringFormatter; /// Creates a module with currently added/deleted lines in the Fossil check-out in the current /// directory. pub fn module<'a>(context: &'a Context) -> Option...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/xmake.rs
src/modules/xmake.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::xmake::XMakeConfig; use crate::formatter::{StringFormatter, VersionFormatter}; /// Creates a module with the current `XMake` version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("xmake"); let...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/gcloud.rs
src/modules/gcloud.rs
use ini::Ini; use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use std::sync::{LazyLock, OnceLock}; use super::{Context, Module, ModuleConfig}; use crate::configs::gcloud::GcloudConfig; use crate::formatter::StringFormatter; use crate::utils; type Account<'a> = (&'a str, Option<&'a str>); struct G...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/mod.rs
src/modules/mod.rs
// While adding out new module add out module to src/module.rs ALL_MODULES const array also. mod aws; mod azure; mod buf; mod bun; mod c; mod cc; mod character; mod cmake; mod cmd_duration; mod cobol; mod conda; mod container; mod cpp; mod crystal; pub mod custom; mod daml; mod dart; mod deno; mod directory; mod direnv...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/pixi.rs
src/modules/pixi.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::pixi::PixiConfig; use crate::formatter::{StringFormatter, VersionFormatter}; use crate::utils::get_command_string_output; /// Creates a module with the current Pixi environment /// /// Will display the Pixi environment iff `$PIXI_ENVIRONMENT_NAME` is set...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/java.rs
src/modules/java.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::java::JavaConfig; use crate::formatter::{StringFormatter, VersionFormatter}; use crate::utils::get_command_string_output; use std::path::PathBuf; use regex::Regex; const JAVA_VERSION_PATTERN: &str = "(?:JRE.*\\(|OpenJ9 )(?P<version>\\d+(?:\\.\\d+){0,2...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/hg_branch.rs
src/modules/hg_branch.rs
use std::io::Error; use std::path::Path; use super::utils::truncate::truncate_text; use super::{Context, Module, ModuleConfig}; use crate::configs::hg_branch::HgBranchConfig; use crate::formatter::StringFormatter; use crate::utils::read_file; /// Creates a module with the Hg bookmark or branch in the current directo...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/character.rs
src/modules/character.rs
use super::{Context, Module, ModuleConfig, Shell}; use crate::configs::character::CharacterConfig; use crate::formatter::StringFormatter; /// Creates a module for the prompt character /// /// The character segment prints an arrow character in a color dependent on the /// exit-code of the last executed command: /// - I...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/zig.rs
src/modules/zig.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::zig::ZigConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current Zig version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("zig"...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/bun.rs
src/modules/bun.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::bun::BunConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use crate::utils::get_command_string_output; /// Creates a module with the current Bun version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/nats.rs
src/modules/nats.rs
use super::{Context, Module, ModuleConfig}; use serde_json as json; use crate::configs::nats::NatsConfig; use crate::formatter::StringFormatter; pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("nats"); let config = NatsConfig::try_load(module.config); i...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/cmake.rs
src/modules/cmake.rs
use super::{Context, Module, ModuleConfig}; use crate::formatter::VersionFormatter; use crate::configs::cmake::CMakeConfig; use crate::formatter::StringFormatter; /// Creates a module with the current `CMake` version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_modu...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/fossil_branch.rs
src/modules/fossil_branch.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::fossil_branch::FossilBranchConfig; use crate::formatter::StringFormatter; use crate::modules::utils::truncate::truncate_text; /// Creates a module with the Fossil branch of the check-out in the current directory /// /// Will display the branch name if th...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/opa.rs
src/modules/opa.rs
/// Creates a module with the current Open Policy Agent version use super::{Context, Module, ModuleConfig}; use crate::configs::opa::OpaConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use crate::utils::get_command_string_output; /// Creates a module with the current Open Policy ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/docker_context.rs
src/modules/docker_context.rs
use std::path::PathBuf; use super::{Context, Module, ModuleConfig}; use crate::configs::docker_context::DockerContextConfig; use crate::formatter::StringFormatter; use crate::utils; /// Creates a module with the currently active Docker context /// /// Will display the Docker context if the following criteria are met...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/lua.rs
src/modules/lua.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::lua::LuaConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use crate::utils::get_command_string_output; /// Creates a module with the current Lua version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/netns.rs
src/modules/netns.rs
use super::{Context, Module}; #[cfg(not(target_os = "linux"))] pub fn module<'a>(_context: &'a Context) -> Option<Module<'a>> { None } #[cfg(target_os = "linux")] pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { use crate::{config::ModuleConfig, configs::netns::NetnsConfig, formatter::StringFor...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/git_metrics.rs
src/modules/git_metrics.rs
use gix::bstr::{BStr, ByteSlice}; use gix::diff::blob::ResourceKind; use gix::diff::blob::pipeline::WorktreeRoots; use rayon::prelude::{IntoParallelRefIterator, ParallelIterator}; use regex::Regex; use super::Context; use crate::configs::git_status::GitStatusConfig; use crate::modules::git_status::uses_reftables; use ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/fortran.rs
src/modules/fortran.rs
use std::{borrow::Cow, ops::Deref, sync::LazyLock}; use semver::Version; use crate::{ config::ModuleConfig, configs::fortran::FortranConfig, formatter::{StringFormatter, VersionFormatter}, }; use super::{Context, Module}; pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/odin.rs
src/modules/odin.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::odin::OdinConfig; use crate::formatter::StringFormatter; /// Creates a module with the current Odin version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("odin"); let config = OdinConfig::try_...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/crystal.rs
src/modules/crystal.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::crystal::CrystalConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current Crystal version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/haxe.rs
src/modules/haxe.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::haxe::HaxeConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use serde_json as json; use regex::Regex; const HAXERC_VERSION_PATTERN: &str = "(?:[0-9a-zA-Z][-+0-9.a-zA-Z]+)"; /// Creates a module with the current Haxe ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/kubernetes.rs
src/modules/kubernetes.rs
use serde_json::Value as JsonValue; use yaml_rust2::{Yaml, YamlLoader}; use std::borrow::Cow; use std::env; use super::{Context, Module, ModuleConfig}; use crate::configs::kubernetes::KubernetesConfig; use crate::formatter::StringFormatter; use crate::utils; #[derive(Default)] struct KubeCtxComponents { user: O...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
true
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/cpp.rs
src/modules/cpp.rs
use super::{Context, Module}; use crate::modules::cc::{Lang, module as cc_module}; /// Creates a module with the current C compiler and version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { cc_module(context, Lang::Cpp) } #[cfg(test)] mod tests { use crate::{test::ModuleRenderer, utils::Comm...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/git_state.rs
src/modules/git_state.rs
use gix::state::InProgress; use std::path::PathBuf; use super::{Context, Module, ModuleConfig}; use crate::configs::git_state::GitStateConfig; use crate::context::Repo; use crate::formatter::StringFormatter; /// Creates a module with the state of the git repository at the current directory /// /// During a git operat...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/package.rs
src/modules/package.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::package::PackageConfig; use crate::formatter::{StringFormatter, VersionFormatter}; use crate::utils::read_file; use ini::Ini; use jsonc_parser::ParseOptions; use quick_xml::Reader as QXReader; use quick_xml::events::Event as QXEvent; use regex::Regex; use...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
true
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/quarto.rs
src/modules/quarto.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::quarto::QuartoConfig; use crate::formatter::{StringFormatter, VersionFormatter}; /// Creates a module with the current Quarto version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("quarto"); l...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/swift.rs
src/modules/swift.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::swift::SwiftConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current Swift version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/memory_usage.rs
src/modules/memory_usage.rs
use systemstat::{ Platform, System, data::{ByteSize, saturating_sub_bytes}, }; use super::{Context, Module, ModuleConfig}; use crate::configs::memory_usage::MemoryConfig; use crate::formatter::StringFormatter; // Display a `ByteSize` in a human readable format. fn display_bs(bs: ByteSize) -> String { let...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/elixir.rs
src/modules/elixir.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::elixir::ElixirConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; use std::ops::Deref; use std::sync::LazyLock; /// Create a module with the current Elixir version pub fn module<'a>(context: &'a Context) -> Option<Modu...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/erlang.rs
src/modules/erlang.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::erlang::ErlangConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Create a module with the current Erlang version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_modu...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/dotnet.rs
src/modules/dotnet.rs
use quick_xml::Reader; use quick_xml::events::Event; use std::ffi::OsStr; use std::iter::Iterator; use std::path::{Path, PathBuf}; use std::str; use super::{Context, Module, ModuleConfig}; use crate::configs::dotnet::DotnetConfig; use crate::formatter::StringFormatter; use crate::utils; type JValue = serde_json::Valu...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/buf.rs
src/modules/buf.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::buf::BufConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("buf"); let config: BufConfig = BufConfig::try_load(...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/haskell.rs
src/modules/haskell.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::haskell::HaskellConfig; use crate::formatter::StringFormatter; /// Creates a module with the current Haskell version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("haskell"); let config = Hask...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/directory.rs
src/modules/directory.rs
#[cfg(not(target_os = "windows"))] use super::utils::directory_nix as directory_utils; #[cfg(target_os = "windows")] use super::utils::directory_win as directory_utils; use super::utils::path::PathExt as SPathExt; use indexmap::IndexMap; use path_slash::{PathBufExt, PathExt}; use std::borrow::Cow; use std::iter::FromIt...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
true
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/battery.rs
src/modules/battery.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::battery::BatteryConfig; #[cfg(test)] use mockall::automock; use starship_battery as battery; use crate::formatter::StringFormatter; /// Creates a module for the battery percentage and charging state pub fn module<'a>(context: &'a Context) -> Option<Modul...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/php.rs
src/modules/php.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::php::PhpConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current PHP version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module("php"...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/cobol.rs
src/modules/cobol.rs
use super::{Context, Module, ModuleConfig}; use crate::configs::cobol::CobolConfig; use crate::formatter::StringFormatter; use crate::formatter::VersionFormatter; /// Creates a module with the current COBOL version pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> { let mut module = context.new_module...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/meson.rs
src/modules/meson.rs
use super::{Context, Module, ModuleConfig}; use super::utils::truncate::truncate_text; use crate::configs::meson::MesonConfig; use crate::formatter::StringFormatter; /// Creates a module with the current Meson dev environment /// /// Will display the Meson environment if `$MESON_DEVENV` and `MESON_PROJECT_NAME` are s...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/custom.rs
src/modules/custom.rs
use std::env; use std::fmt::{self, Debug}; use std::io::Write; use std::path::Path; use std::process::{Command, Stdio}; use std::time::Duration; use process_control::{ChildExt, Control, Output}; use super::{Context, Module, ModuleConfig}; use crate::{ config::Either, configs::custom::CustomConfig, formatter::Str...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/utils/path.rs
src/modules/utils/path.rs
use std::path::Path; pub trait PathExt { /// Compare this path with another path, ignoring /// the differences between Verbatim and Non-Verbatim paths. fn normalised_equals(&self, other: &Path) -> bool; /// Determine if this path starts wit with another path fragment, ignoring /// the differences b...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/utils/mod.rs
src/modules/utils/mod.rs
pub mod directory; #[cfg(target_os = "windows")] pub mod directory_win; #[cfg(not(target_os = "windows"))] pub mod directory_nix; pub mod path; pub mod truncate;
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/utils/truncate.rs
src/modules/utils/truncate.rs
use unicode_segmentation::UnicodeSegmentation; /// Truncate a string to only have a set number of characters /// /// Will truncate a string to only show the last `length` character in the string. /// If a length of `0` is provided, the string will not be truncated and the original /// will be returned. pub fn truncate...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/utils/directory_win.rs
src/modules/utils/directory_win.rs
use std::{mem, os::windows::ffi::OsStrExt, path::Path}; use windows::{ Win32::{ Foundation::{CloseHandle, ERROR_INSUFFICIENT_BUFFER, HANDLE}, Security::{ AccessCheck, DACL_SECURITY_INFORMATION, DuplicateToken, GENERIC_MAPPING, GROUP_SECURITY_INFORMATION, GetFileSecurityW, Ma...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/utils/directory_nix.rs
src/modules/utils/directory_nix.rs
use nix::sys::stat::Mode; use nix::unistd::{Gid, Uid}; use std::fs; use std::os::unix::fs::MetadataExt; use std::os::unix::fs::PermissionsExt; use std::path::Path; #[allow(clippy::doc_overindented_list_items)] /// Checks if the current user can write to the `folder_path`. /// /// It extracts Unix access rights from th...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/modules/utils/directory.rs
src/modules/utils/directory.rs
/// Truncate a path to only have a set number of path components /// /// Will truncate a path to only show the last `length` components in a path. /// If a length of `0` is provided, the path will not be truncated. /// A value will only be returned if the path has been truncated. pub fn truncate(dir_string: &str, lengt...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/nodejs.rs
src/configs/nodejs.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct NodejsConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a s...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/jobs.rs
src/configs/jobs.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct JobsConfig<'a> { pub threshold: i64, pub symbol_threshold: i64, pub number_threshold: ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/username.rs
src/configs/username.rs
use indexmap::IndexMap; use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct UsernameConfig<'a> { pub detect_env_vars: Vec<&'a str>, pub format...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/perl.rs
src/configs/perl.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct PerlConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/starship_root.rs
src/configs/starship_root.rs
use indexmap::IndexMap; use serde::{Deserialize, Serialize}; use std::collections::HashMap; #[derive(Clone, Serialize, Deserialize, Debug)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct StarshipRootConfig { #[serde(ren...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/gradle.rs
src/configs/gradle.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct GradleConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a s...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/ruby.rs
src/configs/ruby.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct RubyConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/rust.rs
src/configs/rust.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct RustConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/aws.rs
src/configs/aws.rs
use serde::{Deserialize, Serialize}; use std::collections::HashMap; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] /// ## AWS /// /// The `aws` module shows the current AWS region and profile a...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/typst.rs
src/configs/typst.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct TypstConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a st...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/sudo.rs
src/configs/sudo.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct SudoConfig<'a> { pub format: &'a str, pub symbol: &'a str, pub style: &'a str, pub...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/fill.rs
src/configs/fill.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct FillConfig<'a> { pub style: &'a str, pub symbol: &'a str, pub disabled: bool, } impl ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/cc.rs
src/configs/cc.rs
use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Clone)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields), schemars(bound = "CcConfig<'a, T>: std::default::Default, T: schemars::JsonSchema") )] #[serde(default)] pub struct CcConfig<...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/guix_shell.rs
src/configs/guix_shell.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct GuixShellConfig<'a> { pub format: &'a str, pub symbol: &'a str, pub style: &'a str, ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/localip.rs
src/configs/localip.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct LocalipConfig<'a> { pub ssh_only: bool, pub format: &'a str, pub style: &'a str, p...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/nim.rs
src/configs/nim.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct NimConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str,...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/kotlin.rs
src/configs/kotlin.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct KotlinConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a s...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/daml.rs
src/configs/daml.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct DamlConfig<'a> { pub symbol: &'a str, pub format: &'a str, pub version_format: &'a str...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/cmd_duration.rs
src/configs/cmd_duration.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct CmdDurationConfig<'a> { pub min_time: i64, pub format: &'a str, pub style: &'a str, ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/env_var.rs
src/configs/env_var.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct EnvVarConfig<'a> { pub symbol: &'a str, pub style: &'a str, #[serde(skip_serializing_i...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/openstack.rs
src/configs/openstack.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct OspConfig<'a> { pub format: &'a str, pub symbol: &'a str, pub style: &'a str, pub ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/shlvl.rs
src/configs/shlvl.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct ShLvlConfig<'a> { pub threshold: i64, pub format: &'a str, pub symbol: &'a str, pu...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/direnv.rs
src/configs/direnv.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct DirenvConfig<'a> { pub format: &'a str, pub symbol: &'a str, pub style: &'a str, p...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/mojo.rs
src/configs/mojo.rs
use nu_ansi_term::Color; use serde::{Deserialize, Serialize}; pub const MOJO_DEFAULT_COLOR: Color = Color::Fixed(208); #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct MojoConfig<'a> ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/fennel.rs
src/configs/fennel.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct FennelConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a s...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/vagrant.rs
src/configs/vagrant.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct VagrantConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/line_break.rs
src/configs/line_break.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize, Default)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct LineBreakConfig { pub disabled: bool, }
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/git_status.rs
src/configs/git_status.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct GitStatusConfig<'a> { pub format: &'a str, pub style: &'a str, pub stashed: &'a str, ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/elm.rs
src/configs/elm.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct ElmConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str,...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/dart.rs
src/configs/dart.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct DartConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/gleam.rs
src/configs/gleam.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct GleamConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a st...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/go.rs
src/configs/go.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct GoConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a str, ...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/scala.rs
src/configs/scala.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct ScalaConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub disabled: bool...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/julia.rs
src/configs/julia.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct JuliaConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &'a st...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/purescript.rs
src/configs/purescript.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct PureScriptConfig<'a> { pub format: &'a str, pub version_format: &'a str, pub symbol: &...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false
starship/starship
https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/vcsh.rs
src/configs/vcsh.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] #[cfg_attr( feature = "config-schema", derive(schemars::JsonSchema), schemars(deny_unknown_fields) )] #[serde(default)] pub struct VcshConfig<'a> { pub symbol: &'a str, pub style: &'a str, pub format: &'a str, pub...
rust
ISC
8a69666084d248b8fd76b6c54f38aea12abce6e3
2026-01-04T15:31:59.388295Z
false