From 55d49c17d6cdd051a727436d4be590c19cc136c1 Mon Sep 17 00:00:00 2001 From: fanyx Date: Sat, 9 Sep 2023 10:56:29 +0200 Subject: [PATCH] Add Starship --- .config/starship.toml | 41 +++++++++++++++++++++++++++++++++++++++++ .void.bashrc | 1 + 2 files changed, 42 insertions(+) create mode 100644 .config/starship.toml diff --git a/.config/starship.toml b/.config/starship.toml new file mode 100644 index 0000000..f5f5212 --- /dev/null +++ b/.config/starship.toml @@ -0,0 +1,41 @@ +"$schema" = 'https://starship.rs/config-schema.json' + +add_newline = false + +format = '''\[[$username $hostname](bold green)\]$fill$time$fill$container$git_branch$git_commit$git_state$git_status +$directory$character''' +right_format = '''$elixir$elm$cmd_duration''' + +[username] +show_always = true +format = '[$user]($style) @' +style_user = 'bold green' + +[hostname] +ssh_only = false +format = '[$hostname]($style)' +style = 'bold green' + +[character] +# success_symbol = '[✔](bold green)' +success_symbol = '[\$](bold green)' +# error_symbol = '[✗](bold red)' +error_symbol = '[\$](bold red)' + +[container] +style = 'bold blue dimmed' + +[directory] +truncation_symbol = '.../' +truncate_to_repo = false +before_repo_root_style = 'bold cyan' +repo_root_style = 'bold bright-cyan' +repo_root_format = '[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($repo_root_style)[$read_only]($read_only_style) ' + +[fill] +symbol = ' ' + +[time] +disabled = false +format = '[$time]($style)' + diff --git a/.void.bashrc b/.void.bashrc index a7bc40c..778ccd7 100644 --- a/.void.bashrc +++ b/.void.bashrc @@ -58,6 +58,7 @@ shopt -s checkwinsize # - hooks command -v direnv &>/dev/null && eval "$(direnv hook bash)" +command -v starship &>/dev/null && eval "$(starship init bash)" # - env vars