This commit is contained in:
parent
a373700967
commit
98a8ea2a77
1 changed files with 11 additions and 1 deletions
12
setup.sh
12
setup.sh
|
@ -8,7 +8,17 @@ current_arch="$(uname -m)"
|
|||
command -v starship &> /dev/null || mkdir -p $HOME/.local/bin && curl -sS https://starship.rs/install.sh | sudo -E sh -s -- --yes --bin-dir $HOME/.local/bin
|
||||
|
||||
# pfetch
|
||||
command -v pfetch &> /dev/null || curl -L "https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-gnu-$(uname -m).tar.gz" | sudo tar -xvz -C $HOME/.local/bin
|
||||
case $current_arch in
|
||||
x86_64)
|
||||
command -v pfetch &> /dev/null || curl -L "https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-gnu-x86_64.tar.gz" | sudo tar -xvz -C $HOME/.local/bin
|
||||
;;
|
||||
aarch64)
|
||||
command -v pfetch &> /dev/null || curl -L "https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-musl-aarch64.tar.gz" | sudo tar -xvz -C $HOME/.local/bin
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported architecture: $current_arch"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
# Go
|
||||
case $current_arch in
|
||||
|
|
Reference in a new issue