Starship: Difference between revisions
No edit summary |
m Improve code block formatting |
||
(One intermediate revision by one other user not shown) | |||
Line 57: | Line 57: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.starship.enable = true; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
Line 68: | Line 68: | ||
eval "$(starship init bash)" | eval "$(starship init bash)" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Zsh: | |||
<syntaxhighlight lang="zsh"> | <syntaxhighlight lang="zsh"> | ||
eval "$(starship init zsh)" | eval "$(starship init zsh)" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Fish: | |||
<syntaxhighlight lang="fish"> | <syntaxhighlight lang="fish"> | ||
starship init fish | source | starship init fish | source | ||
Line 88: | Line 88: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
programs.starship = { | programs.starship = { | ||
enable = true; | |||
settings = { | |||
add_newline = true; | |||
command_timeout = 1300; | |||
scan_timeout = 50; | |||
format = "$all$nix_shell$nodejs$lua$golang$rust$php$git_branch$git_commit$git_state$git_status\n$username$hostname$directory"; | |||
character = { | |||
success_symbol = "[](bold green) "; | |||
error_symbol = "[✗](bold red) "; | |||
}; | |||
}; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
<!--T:13--> | <!--T:13--> | ||
since we can't include every option on Starship here's a GitHub link </translate> | since we can't include every option on Starship here's a GitHub link </translate> <noinclude> [https://gist.github.com/s-a-c/0e44dc7766922308924812d4c019b109#file-starship-nix/ containing every configuration option] </noinclude> | ||
[https://gist.github.com/s-a-c/0e44dc7766922308924812d4c019b109#file-starship-nix/ containing every configuration option] | |||
<translate> | <translate> | ||
<!--T:14--> | <!--T:14--> |