-
Star
(203)
You must be signed in to star a gist -
Fork
(37)
You must be signed in to fork a gist
-
-
Save ryo-ARAKI/48a11585299f9032fa4bda60c9bba593 to your computer and use it in GitHub Desktop.
# ~/.config/starship.toml | |
[battery] | |
full_symbol = "๐" | |
charging_symbol = "๐" | |
discharging_symbol = "โก" | |
[[battery.display]] | |
threshold = 30 | |
style = "bold red" | |
[character] | |
error_symbol = "[โ](bold red) " | |
[cmd_duration] | |
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec) | |
format = " took [$duration]($style)" | |
[directory] | |
truncation_length = 5 | |
format = "[$path]($style)[$lock_symbol]($lock_style)" | |
[git_branch] | |
format = " [$symbol$branch]($style) " | |
symbol = "๐ฃ " | |
style = "bold yellow" | |
[git_commit] | |
commit_hash_length = 8 | |
style = "bold white" | |
[git_state] | |
format = '[\($state( $progress_current of $progress_total)\)]($style) ' | |
[git_status] | |
conflicted = "โ๏ธ " | |
ahead = "๐๏ธ ๐จ ร${count} " | |
behind = "๐ข ร${count} " | |
diverged = "๐ฑ ๐๏ธ ๐จ ร${ahead_count} ๐ข ร${behind_count} " | |
untracked = "๐ค๏ธ ร${count} " | |
stashed = "๐ฆ " | |
modified = "๐ ร${count} " | |
staged = "๐๏ธ ร${count} " | |
renamed = "๐ ร${count} " | |
deleted = "๐๏ธ ร${count} " | |
style = "bright-white" | |
format = "$all_status$ahead_behind" | |
[hostname] | |
ssh_only = true | |
format = "[$hostname]($style)" | |
trim_at = "-" | |
style = "bold dimmed white" | |
disabled = false | |
[julia] | |
format = "[$symbol$version]($style) " | |
symbol = "เฎ " | |
style = "bold green" | |
[memory_usage] | |
format = "$symbol[${ram}( | ${swap})]($style) " | |
threshold = 70 | |
style = "bold dimmed white" | |
disabled = false | |
[package] | |
disabled = true | |
[python] | |
format = "[$symbol$version]($style) " | |
style = "bold green" | |
[rust] | |
format = "[$symbol$version]($style) " | |
style = "bold green" | |
[time] | |
time_format = "%T" | |
format = "๐ $time($style) " | |
style = "bright-white" | |
disabled = false | |
[typst] | |
format = "[$symbol($version)]($style)" | |
style = "bold #239dae" | |
[username] | |
style_user = "bold dimmed blue" | |
show_always = false | |
[nodejs] | |
format = "via [๐ค $version](bold green) " |
How to change the region value of the prompt?
From starship docs:
The aws module shows the current AWS region and profile and an expiration timer when using temporary credentials. The output of the module uses the AWS_REGION, AWS_DEFAULT_REGION, and AWS_PROFILE env vars and the ~/.aws/config and ~/.aws/credentials files as required.
I have a default region set in my
~/.aws/config
# example config [default] sso_session = my-sso sso_account_id = 111122223333 sso_role_name = readOnly region = us-west-2 # <-- starship uses this output = text [profile user1] sso_session = my-sso sso_account_id = 444455556666 sso_role_name = readOnly region = us-east-1 output = json [sso-session my-sso] sso_region = us-east-1 sso_start_url = https://my-sso-portal.awsapps.com/start sso_registration_scopes = sso:account:accessCheck this out for more details: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
Thank you.
Hi, how can i make it so that my directory shows like "Dashboard > resources" instead of "Dashboard/resources"? I am using the nerd-font-symbols preset. Also, as this is in VSCode, I want to show the full directory to "Dashboard". Putting the code in the config below does not work.
[directory]
truncation_length = 0
read_only = " ๓ฐพ"
Hi,
Thank you for sharing this, I'm pretty new to starship. I've moved from basic .zsh
terminal to starship.
I wanted to port my .zshrc
configuration to starship
, couldn't find proper documentation to follow.
Kind of looking for equivalents of doing aliases. For example:
## cat
alias bat='bat --theme=ansi-dark'
command -v bat > /dev/null && alias cat='bat --pager=never'
## du
command -v dust > /dev/null && alias du='dust'
## find
command -v fd > /dev/null && alias find='fd'
## fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
## git aliases and functions
source $HOME/.config/zsh/git.zsh
## history
source $HOME/.config/zsh/history.zsh
Thank you.
damn