Skip to content

Commit

Permalink
update starship.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shunk031 committed Aug 19, 2024
1 parent 4343b37 commit 7af6782
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install/ubuntu/server/starship.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ readonly BIN_DIR="${HOME}/.local/bin/server"
function install_starship() {
# equivalent to `https://starship.rs/install.sh`
local url="https://raw.githubusercontent.com/starship/starship/master/install/install.sh"
local version="latest"

mkdir -p "${BIN_DIR}"

curl -sS "${url}" | dash -s -- --yes --bin-dir "${BIN_DIR}"
curl -sS "${url}" | sh -s -- \
--yes \
--version "${version}" \
--bin-dir "${BIN_DIR}"
}

function uninstall_starship() {
Expand Down

0 comments on commit 7af6782

Please sign in to comment.