Installing Starship
16-01-2022
Installation (Linux):
curl -sS [https://starship.rs/install.sh](https://starship.rs/install.sh) | sh- add startup script to
~/.zshrc:
eval "$(starship init zsh)"Installation (Windows):
- download artefact from GitHub Release archive:
- extract zip and add exectuable to PATH
- add the following to the end of your PowerShell configuration file (locate this file by running
$PROFILEin powershell):
Invoke-Expression (&starship init powershell)Configuration:
- add configuration in
~/.config/starship.toml:
[hostname]
ssh_only = false
format = "[lukemiloszewski](bold red) "
disabled = false
[directory]
format = "at 🚀 [$path]($style)[$read_only]($read_only_style) "
truncate_to_repo = true # truncate to root of git repository
truncation_length = 3 # number of parent folders current directory will be truncated to
truncation_symbol = ""
[git_branch]
symbol = "🌱 "
truncation_length = 20
truncation_symbol = "..."
[git_commit]
only_detached = false
commit_hash_length = 7
tag_symbol = "🔖 "
tag_disabled = false
[battery]
full_symbol = "🔋 "
charging_symbol = "⚡️ "
discharging_symbol = "💀 "
[[battery.display]]
threshold = 20
style = "bold red"
[line_break]
disabled = false
[package]
disabled = true
[python]
python_binary = "python"
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
format = '[$time]($style) '