Skip to content

Commit

Permalink
feat: starship
Browse files Browse the repository at this point in the history
  • Loading branch information
senz committed Jul 22, 2024
1 parent 5284578 commit 22347ca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion Pakfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
com.behringer.XAirEdit
com.brave.Browser
com.calibre_ebook.calibre
com.cuperino.qprompt
com.github.marhkb.Pods
Expand Down
2 changes: 1 addition & 1 deletion Rpmfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ vim
wl-clipboard
zerotier-one
zsh
"https://dl.smallstep.com/cli/docs-ca-install/latest/step-cli_amd64.rpm"
"https://dl.smallstep.com/gh-release/cli/gh-release-header/v0.27.2/step-cli_0.27.2_amd64.rpm"
"https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm"
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
# "https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-38-1.noarch.rpm"
4 changes: 4 additions & 0 deletions dot_zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ fi

gpg-connect-agent -q updatestartuptty /bye >/dev/null

if command -v starship &>/dev/null; then
eval "$(starship init zsh)"
fi

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
8 changes: 8 additions & 0 deletions run_once_before_install-packages-linux.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,13 @@ setup_modprobe_d() {
done
}

install_startship_prompt() {
if [ ! -f ~/.local/bin/starship ]; then
echo "Installing starship prompt"
curl -sS https://starship.rs/install.sh | sh -s -- -y
fi
}

# ask for sudo password to cache it early in case we need it later
# not a gurantee, but saves time in some cases
sudo echo "Caching sudo password"
Expand All @@ -301,6 +308,7 @@ install_git_credential_github
setup_i2c
install_ddcci-plasmoid
setup_modprobe_d
install_startship_prompt

## End of Kinoite specific setup
{{ end -}}
Expand Down

0 comments on commit 22347ca

Please sign in to comment.