config: add starship

main
sudo pacman -Syu 2024-10-09 15:19:45 +07:00
parent ffa6c6fa4d
commit 5e29422f9d
4 changed files with 36 additions and 4 deletions

View File

@ -33,13 +33,12 @@ go build ./cmd/dot
- [wezterm](https://github.com/wez/wezterm) - [wezterm](https://github.com/wez/wezterm)
- [fd](https://github.com/sharkdp/fd) - [fd](https://github.com/sharkdp/fd)
- [bat](https://github.com/sharkdp/bat) - [bat](https://github.com/sharkdp/bat)
- [delta](https://github.com/dandavison/delta)
- [ripgrep](https://github.com/BurntSushi/ripgrep) - [ripgrep](https://github.com/BurntSushi/ripgrep)
- [tmux](https://github.com/tmux/tmux)
- [zellij](https://github.com/zellij-org/zellij) - [zellij](https://github.com/zellij-org/zellij)
- [powerlevel10k](https://github.com/romkatv/powerlevel10k) - [starship](https://github.com/starship/starship)
- [zed](https://github.com/zed-industries/zed) - [zed](https://github.com/zed-industries/zed)
- [pokeget](https://github.com/talwat/pokeget-rs)
- [btop](https://github.com/aristocratos/btop) - [btop](https://github.com/aristocratos/btop)
- [newsboat](https://github.com/newsboat/newsboat) - [newsboat](https://github.com/newsboat/newsboat)
- [sioyek](https://github.com/ahrm/sioyek) - [typos](https://github.com/crate-ci/typos)
- [daktilo](https://github.com/orhun/daktilo) - [daktilo](https://github.com/orhun/daktilo)

View File

@ -78,6 +78,10 @@ external = "~/.config/ripgrep"
internal = "data/zellij" internal = "data/zellij"
external = "~/.config/zellij" external = "~/.config/zellij"
[[apps.starship.paths]]
internal = "data/starship/starship.toml"
external = "~/.config/starship/starship.toml"
[[apps.zed.paths]] [[apps.zed.paths]]
internal = "data/zed/settings.json" internal = "data/zed/settings.json"
external = "~/.config/zed/settings.json" external = "~/.config/zed/settings.json"

View File

@ -0,0 +1,28 @@
"$schema" = 'https://starship.rs/config-schema.json'
add_newline = false
format = """
$username\
$hostname\
$localip\
$shlvl\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_metrics\
$git_status\
$package\
$golang\
$env_var\
$custom\
$sudo\
$cmd_duration\
$line_break\
$jobs\
$time\
$status\
$os\
$shell\
$character"""

View File

@ -210,6 +210,7 @@ fi
# https://github.com/starship/starship # https://github.com/starship/starship
if command -v starship &>/dev/null; then if command -v starship &>/dev/null; then
export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
eval "$(starship init zsh)" eval "$(starship init zsh)"
fi fi