From b644ea7ab179ecdac4faa9eb5fc6e904f9c9195c Mon Sep 17 00:00:00 2001 From: qwjyh Date: Tue, 20 Sep 2022 02:21:10 +0900 Subject: [PATCH] starship --- bin/install.ps1 | 2 + dotfiles/starship/starship.toml | 87 +++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 dotfiles/starship/starship.toml diff --git a/bin/install.ps1 b/bin/install.ps1 index d2741f8..3ac7c4d 100644 --- a/bin/install.ps1 +++ b/bin/install.ps1 @@ -34,3 +34,5 @@ New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\init.vim -Target (Res # pwsh New-Item -ItemType SymbolicLink -Path $PROFILE -Target (Resolve-Path .\dotfiles\pwsh\powershell_profile.ps1) -Force New-Item -ItemType SymbolicLink -Path ~\.config\powershell\chezmoi_completion.ps1 -Target (Resolve-Path .\dotfiles\pwsh\chezmoi_completion.ps1) -Force +# starship +New-Item -ItemType SymbolicLink -Path ~\.config\starship.toml -Target (Resolve-Path .\dotfiles\starship\starship.toml) -Force diff --git a/dotfiles/starship/starship.toml b/dotfiles/starship/starship.toml new file mode 100644 index 0000000..3e5f6fb --- /dev/null +++ b/dotfiles/starship/starship.toml @@ -0,0 +1,87 @@ +# Get editor completions based on the config schema +"$schema" = 'https://starship.rs/config-schema.json' + +# Inserts a blank line between shell prompts +add_newline = false + +# 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" + +# Disable the package module, hiding it from the prompt completely +[package] +disabled = true + +[battery] +full_symbol = " " +charging_symbol = "🔌 " +discharging_symbol = "⚡ " +[[battery.display]] +threshold = 10 +style = "bold red" +[[battery.display]] +threshold = 40 +style = "yellow" +[[battery.display]] +threshold = 100 +style = "green" + +[c] +format = "via [$symbol $name $version]($style)" +symbol = "" + +[cmd_duration] +min_time = 2_000 +show_notifications = true +min_time_to_notify = 120_000 + +[directory] +truncation_length = 3 +truncate_to_repo = false +truncation_symbol = ".../" + +[git_branch] +format = "on [$symbol$branch(:$remote_branch)]($style) " +symbol = " " +style = "bold yellow" + +[git_metrics] +disabled = false + +[git_status] +format = '([\[$all_status$ahead_behind\]]($style) )' +windows_starship = '/mnt/c/Users/Owner/scoop/shims/starship.exe' +ahead = "⇡${count}" +diverged = "⇕⇡${ahead_count}⇣${behind_count}" +behind = "⇣${count}" + +[julia] +format = "via [$symbol($version )]($style)" +symbol = " " +style = "bold blue" + +[memory_usage] +format = "$symbol [${ram}( | ${swap})]($style) " +symbol = "" +disabled = false + +[python] +format = 'via [${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)' +symbol = "" +python_binary = ["./venv/bin/python", "python", "python3", "python2"] + +[rlang] +format = "via [$symbol($version )]($style)" +symbol = "ﳒ" + +[shell] +powershell_indicator = ">_" +disabled = false + +[sudo] +disabled = false + +[time] +format = "at [$time]($style) " +style = "bold yellow bg:gray" +disabled = false \ No newline at end of file