commit 0396157ac5c8e1f1ded05f9aef394a67bcb82380 Author: ray Date: Sat Aug 1 10:40:26 2020 +0100 initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..f80805c --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +Usage: + +```shell +# default config location is ~/.config/starship.toml +export STARSHIP_CONFIG=~/.config/starship/starship.toml +eval "$(starship init zsh)" +``` + + diff --git a/starship.toml b/starship.toml new file mode 100644 index 0000000..88e7e79 --- /dev/null +++ b/starship.toml @@ -0,0 +1,56 @@ +prompt_order = [ + "custom.separator", + "line_break", + "username", + "hostname", + "line_break", + "directory", + "git_branch", + "git_commit", + "git_state", + "git_status", + "line_break", + "nodejs", + "python", + "php", + "line_break", + "jobs", + "battery", + "memory_usage", + "character", +] + +[character] +use_symbol_for_status = true +style_success = "dimmed black" +style_failure = "bold bright-red" + +[directory] +truncate_to_repo = false +truncation_length = 12 +style = "white" + +[python] +symbol = "Python: " +style = "dimmed black" + +[php] +symbol = "PHP: " +style = "dimmed black" + +[nodejs] +symbol = "Node: " +style = "dimmed black" + +[memory_usage] +disabled = false +show_swap = false +threshold = 0.66 +symbol = "" +style = "bold bright-red" + +[custom.separator] +disabled = false +command = 'date +"%H:%M:%S ――――――――――――――――――――――――――――――――"' +when = "true" +style = "dimmed black"