-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #300 from izumin5210/izumin5210/starship
use starship
- Loading branch information
Showing
7 changed files
with
78 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ apt install -y \ | |
fzf \ | ||
ripgrep \ | ||
tig | ||
|
||
curl -sS https://starship.rs/install.sh | sh -s -- -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
"$schema" = 'https://starship.rs/config-schema.json' | ||
|
||
add_newline = true | ||
|
||
format = """ | ||
${custom.git_repo}\ | ||
$directory\ | ||
$git_status\ | ||
$git_state\ | ||
$git_branch\ | ||
$git_commit\ | ||
$git_state\ | ||
$jobs\ | ||
$status\ | ||
$cmd_duration\ | ||
$line_break\ | ||
$shell\ | ||
$character""" | ||
|
||
[character] | ||
success_symbol = '[:\)](green)' | ||
error_symbol = '[:\(](red)' | ||
|
||
[package] | ||
disabled = true | ||
|
||
[directory] | ||
truncate_to_repo = false | ||
truncation_length = 100 | ||
format = '[$path ]($style)[$read_only]($read_only_style)' | ||
style = 'blue' | ||
repo_root_format = '[($path )]($style)[$read_only]($read_only_style)[-](black) ' | ||
repo_root_style = 'blue' | ||
|
||
[custom.git_repo] | ||
when = true | ||
require_repo = true | ||
command = 'git rev-parse --show-toplevel | sed -e "s,$(ghq root)/\(github\.com/\)\?,,"' | ||
style = 'bold blue' | ||
|
||
[git_status] | ||
format = '([$all_status$ahead_behind]($style) )' | ||
ahead = '[⇡$ahead_count](red)' | ||
behind = '[⇣$behind_count](cyan)' | ||
modified = '[ ](yellow)' | ||
deleted = '[ ](red)' | ||
untracked = '[ ](red)' | ||
staged = '[ ](green)' | ||
stashed ='[ ](cyan)' | ||
|
||
[git_state] | ||
format = '\([$state( $progress_current/$progress_total)]($style)\) ' | ||
style = 'bold red' | ||
|
||
[git_branch] | ||
format = '[[$symbol](black)$branch(:$remote_branch) ]($style)' | ||
symbol = '' | ||
style = 'bold black' | ||
|
||
[jobs] | ||
number_threshold = 1 | ||
style = 'purple' | ||
|
||
[status] | ||
format = '[[-](black) $status( SIG$signal_name)]($style) ' | ||
disabled = false | ||
style = 'red' | ||
|
||
[cmd_duration] | ||
format = '[[-](black) $duration]($style) ' | ||
style = 'yellow' | ||
min_time = 10_000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ | |
pkgs.jq | ||
pkgs.mas # only darwin | ||
pkgs.ripgrep | ||
pkgs.starship | ||
pkgs.tig | ||
pkgs.tree | ||
|
||
|