-
Notifications
You must be signed in to change notification settings - Fork 0
/
common_pkgs.sh
executable file
·100 lines (81 loc) · 1.67 KB
/
common_pkgs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env bash
# vim:ft=sh:foldmethod=marker
script_path="$(realpath $0)"
script_dir="$(dirname "$script_path")"
# failed on error
set -e
# common homebrew packages
declare -a pkgs=(
# code manager
git
# decompression
unzip
# decompression
brotli
# TUI git repo viewer
tig
# file downloader
curl
# make system
cmake
# programming language
python3
lua
# zig - build from source
# go - build from source
# llvm ecosystem
# this would also install llvm/cmake
clang
# lua manager
luarocks
# http client
httpie
# Node.JS JavaScript ecosystem
node
pnpm
# json tool
jq
# linter
shellcheck
# cli utilities
# debug
gdb
# TUI session
tmux
# interactive search with fuzzy algorithm
fzf
# better htop
btop
# editor
vim
neovim
# video encoder/decoder/downloader/editor
ffmpeg
# free lossless audio codec
flac
# print system info
fastfetch
# library
lzo
# -- Linter/Formatter -- {{{
# Swift Style
swiftlint
# }}}
#
)
declare -a brew_pkgs=(
# git status widget
"romkatv/gitstatus/gitstatus"
# bun
"oven-sh/bun/bun"
# library
openssl@3
)
if [[ -x "$(command -v pacman)" ]]; then
# Arch Linux
"$script_dir/helper.sh" -pacman "${pkgs[@]}" && echo -e "$lightyellow common packages ${reset_color} check ${lightgreen}✔$reset_color"
elif [[ -x "$(command -v brew)" ]]; then
"$script_dir/helper.sh" -setup "brew" && echo -e "$lightyellow homebrew${reset_color} check ${lightgreen}✔$reset_color"
"$script_dir/helper.sh" -brew "${brew_pkgs[@]}" && echo -e "$lightyellow homebrew-only packages ${reset_color} check ${lightgreen}✔$reset_color"
"$script_dir/helper.sh" -brew "${pkgs[@]}" && echo -e "$lightyellow common packages ${reset_color} check ${lightgreen}✔$reset_color"
fi