Update 1 file: bootstrap.sh
This commit is contained in:
+23
-1
@@ -22,7 +22,7 @@ arch() {
|
||||
|
||||
check_all() {
|
||||
local missing=()
|
||||
for cmd in zsh git curl jq fzf starship eza bat delta fastfetch dotstate; do
|
||||
for cmd in zsh git curl jq fzf starship eza bat delta fastfetch dotstate lazygit lazydocker; do
|
||||
command -v "$cmd" &>/dev/null || missing+=("$cmd")
|
||||
done
|
||||
echo "${missing[@]}"
|
||||
@@ -93,6 +93,26 @@ install_binary() {
|
||||
curl -sSfL "$url" -o /usr/local/bin/jq
|
||||
sudo chmod +x /usr/local/bin/jq
|
||||
;;
|
||||
lazygit)
|
||||
info "installing lazygit"
|
||||
local lazygit_arch
|
||||
case "$arch" in
|
||||
x86_64) lazygit_arch="x86_64" ;;
|
||||
aarch64) lazygit_arch="arm64" ;;
|
||||
armhf) lazygit_arch="armv6" ;;
|
||||
esac
|
||||
curl -sSfL "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_Linux_${lazygit_arch}.tar.gz" | sudo tar xz -C /usr/local/bin
|
||||
;;
|
||||
lazydocker)
|
||||
info "installing lazydocker"
|
||||
local lazydocker_arch
|
||||
case "$arch" in
|
||||
x86_64) lazydocker_arch="x86_64" ;;
|
||||
aarch64) lazydocker_arch="arm64" ;;
|
||||
armhf) lazydocker_arch="armv6" ;;
|
||||
esac
|
||||
curl -sSfL "https://github.com/jesseduffield/lazydocker/releases/latest/download/lazydocker_Linux_${lazydocker_arch}.tar.gz" | sudo tar xz -C /usr/local/bin
|
||||
;;
|
||||
dotstate)
|
||||
info "installing dotstate"
|
||||
curl -fsSL https://dotstate.serkan.dev/install.sh | bash
|
||||
@@ -114,6 +134,8 @@ install_missing() {
|
||||
[delta]="git-delta"
|
||||
[fastfetch]="fastfetch"
|
||||
[zsh]="zsh"
|
||||
[lazygit]="lazygit"
|
||||
[lazydocker]="lazydocker"
|
||||
)
|
||||
|
||||
local sys_pkgs=()
|
||||
|
||||
Reference in New Issue
Block a user