Skip to content

Commit

Permalink
config: add starship
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Oct 9, 2024
1 parent ffa6c6f commit 5e29422
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@ go build ./cmd/dot
- [wezterm](https://github.com/wez/wezterm)
- [fd](https://github.com/sharkdp/fd)
- [bat](https://github.com/sharkdp/bat)
- [delta](https://github.com/dandavison/delta)
- [ripgrep](https://github.com/BurntSushi/ripgrep)
- [tmux](https://github.com/tmux/tmux)
- [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)
- [pokeget](https://github.com/talwat/pokeget-rs)
- [btop](https://github.com/aristocratos/btop)
- [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)
4 changes: 4 additions & 0 deletions data/data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ external = "~/.config/ripgrep"
internal = "data/zellij"
external = "~/.config/zellij"

[[apps.starship.paths]]
internal = "data/starship/starship.toml"
external = "~/.config/starship/starship.toml"

[[apps.zed.paths]]
internal = "data/zed/settings.json"
external = "~/.config/zed/settings.json"
Expand Down
28 changes: 28 additions & 0 deletions data/starship/starship.toml
Original file line number Diff line number Diff line change
@@ -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"""
1 change: 1 addition & 0 deletions data/zsh/bottom-zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ fi

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

Expand Down

0 comments on commit 5e29422

Please sign in to comment.