Last active
September 29, 2022 07:55
-
-
Save sonulohani/ef1b8102bd16c9b48dce622f6a016c14 to your computer and use it in GitHub Desktop.
My startship config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# Inserts a blank line between shell prompts | |
add_newline = true | |
# Replace the "❯" symbol in the prompt with "➜" | |
[character] # The name of the module we are configuring is "character" | |
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green" | |
error_symbol = "[✖](bold red) " | |
[cmd_duration] | |
min_time = 5_000 # Show command duration over 5,000 milliseconds (=5 secs) | |
format = " took [$duration]($style)" | |
[hostname] | |
ssh_only = false | |
format = "<[$hostname]($style)>" | |
trim_at = "-" | |
style = "bold dimmed white" | |
disabled = true | |
[username] | |
style_user = "bold dimmed blue" | |
show_always = false | |
# Here is how you can shorten some long paths by text replacement | |
# similar to mapped_locations in Oh My Posh: | |
[directory.substitutions] | |
"Documents" = " " | |
"Downloads" = " " | |
"Music" = " " | |
"Pictures" = " " | |
# Keep in mind that the order matters. For example: | |
# "Important Documents" = " " | |
# will not be replaced, because "Documents" was already substituted before. | |
# So either put "Important Documents" before "Documents" or use the substituted version: | |
# "Important " = " " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mkdir -p ~/.config && touch ~/.config/starship.toml