Skip to content

Commit

Permalink
Restore starship install & configuration
Browse files Browse the repository at this point in the history
While Warp is awesome, it's not a replacement for starship in all
contexts.

In particular, I use starship while in the terminal for IntelliJ &
VSCode.
  • Loading branch information
JLLeitschuh committed Jan 17, 2023
1 parent 6499e1e commit ebfba99
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configs/dotfiles/.config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Only include the selected configuration files as we symlink
# the folder and it may contain sensitive data.
*
!starship.toml
!.gitignore
105 changes: 105 additions & 0 deletions configs/dotfiles/.config/starship.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
add_newline = false

[cmd_duration]
min_time = 1
show_milliseconds = true
format = "[$duration](fg:242)"

# Disable default modules as per https://starship.rs/config/#default-prompt-format to improve performance

[hostname]
disabled = true

[git_status]
disabled = true

[package]
disabled = true

[cmake]
disabled = true

[dart]
disabled = true

[dotnet]
disabled = true

[elixir]
disabled = true

[elm]
disabled = true

[erlang]
disabled = true

[golang]
disabled = true

[helm]
disabled = true

[java]
disabled = true

[julia]
disabled = true

[kotlin]
disabled = true

[nim]
disabled = true

[nodejs]
disabled = true

[ocaml]
disabled = true

[perl]
disabled = true

[php]
disabled = true

[purescript]
disabled = true

[python]
# Enabled to show the current Python virtual environment
disabled = false

[ruby]
disabled = true

[rust]
disabled = true

[swift]
disabled = true

[terraform]
disabled = true

[zig]
disabled = true

[nix_shell]
disabled = true

[conda]
disabled = true

[aws]
disabled = true

[gcloud]
disabled = true

[env_var]
disabled = true

[crystal]
disabled = true
5 changes: 5 additions & 0 deletions configs/dotfiles/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ for file in ~/.macstrap/configs/dotfiles/.{aliases,exports,extra,path}; do
done;
unset file;

if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
# Start Starship for non-WarpTerminal terminals (e.g. IntelliJ, VSCode, ect...)
eval "$(starship init zsh)"
fi

# Add ASDF to ZSH
. $(brew --prefix asdf)/libexec/asdf.sh

Expand Down
1 change: 1 addition & 0 deletions macstrap.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ binaries=(
p7zip
pinentry-mac
shellcheck
starship # Used in non-warp terminals
tmux
tree
vim
Expand Down

0 comments on commit ebfba99

Please sign in to comment.