Skip to content

Instantly share code, notes, and snippets.

@TheAwesomeGuy47
Created February 5, 2022 19:11
Show Gist options
  • Save TheAwesomeGuy47/bb0daa48453b61151056c27b916347f0 to your computer and use it in GitHub Desktop.
Save TheAwesomeGuy47/bb0daa48453b61151056c27b916347f0 to your computer and use it in GitHub Desktop.
# ~/.config/starship.toml
# Format
format = """
[┌───────────────────>](bold green)
[│](bold green)$username$hostname$directory on $shell $sudo $cmd_duration
[│](bold green)$git_branch $git_status
[│](bold green)$conda$python$dotnet$golang$java$kotlin$lua$nodejs$php$rust$package
[└─>](bold green) """
# Show the user currently running the command
[username]
style_user = "white bold"
style_root = "black bold"
format = "[$user]($style)"
disabled = false
show_always = true
# Show the hostname as shown in /etc/hostname
[hostname]
ssh_only = false
format = "@[$hostname](bold white)"
disabled = false
# Show the directory that the shell is inside
[directory]
truncation_length = 5
truncate_to_repo = true
read_only = "📕"
read_only_style = "red"
style = "bold cyan"
home_symbol = "~"
use_os_path_sep = true
format = " [$path]($style)[$read_only]($read_only_style)"
# Show the current shell
[shell]
fish_indicator = ""
powershell_indicator = "_"
unknown_indicator = "mystery shell"
style = "cyan bold"
disabled = false
# Show if sudo credentials are cached
[sudo]
disabled = false
# Show the status of the last ran command
[status]
disabled = false
# Show the current Git Branch (if applicable)
[git_branch]
symbol = " "
format = " on [$symbol$branch]($style)"
style = "bold purple"
truncation_symbol = "..."
disabled = false
# Show what's going on in the current Git Repository (if applicable)
[git_status]
ahead = "↑"
behind = "↓"
up_to_date = "✅"
disabled = false
# Show how long the command ran took in seconds
[cmd_duration]
min_time = 500
format = " took [$duration](bold yellow)"
disabled = false
# Language support and other stuff
[conda]
format = "[$symbol$environment](dimmed green) "
disabled = false
[dotnet]
style = "bold purple"
format = " on [$symbol($version )]($style)"
disabled = false
[golang]
symbol = "🐹 GoLang"
format = " on [$symbol($version )]($style)"
disabled = false
[java]
symbol = "☕ Java"
format = " on [${symbol}(${version} )]($style)"
disabled = false
[kotlin]
format = " on [$symbol($version )]($style)"
disabled = false
[lua]
format = " on [$symbol($version )]($style)"
disabled = false
[nodejs]
format = " on [$symbol($version )]($style)"
disabled = false
[package]
format = " in [$symbol$version]($style)"
disabled = false
[php]
format = " on [$symbol($version )]($style)"
disabled = false
[python]
style = "bold green"
format = " on [${symbol}${pyenv_prefix}($version)(($virtualenv) )]($style)"
disabled = false
[rust]
format = " on [$symbol($version )]($style)"
disabled = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment