-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-cli.sh
executable file
·102 lines (66 loc) · 2.51 KB
/
install-cli.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
101
102
brew update
brew upgrade
echo "Installing zsh"
sudo sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
compaudit | xargs chmod g-w,o-w
echo "Install fonts"
brew tap homebrew/cask-fonts
brew install font-hack-nerd-font
echo "Install powerlevel10k"
brew install powerlevel10k
echo "source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme" >> ~/.zshrc
p10k configure
echo "Install zsh-autosuggestions"
brew install zsh-autosuggestions
echo "source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
echo "Install zsh-syntax-highlighting"
brew install zsh-syntax-highlighting
echo "source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
echo "Install midnight commander file manager"
brew install mc
echo "Install yazi file manager"
brew install yazi ffmpegthumbnailer sevenzip jq poppler fd ripgrep imagemagick font-symbols-only-nerd-font
echo "Install fzf fuzzy finder"
# https://github.com/junegunn/fzf
brew install fzf
source <(fzf --zsh)
echo "Install ripgrep finder"
# https://github.com/BurntSushi/ripgrep
brew install ripgrep
echo "Install eza a better ls"
brew install eza
echo "Install zoxide a better cd"
brew install zoxide
echo "Install bat file previewer, alternative to cat"
brew install bat
echo "Install GNU parallel, useful for parallel executions, ex: parallel --jobs 3 --delay 2 --timeout 5 --shuf --progress echo {1} ::: 1 2 3"
brew install parallel
echo "Installing gsed to manipulate files, similar to sed but with more compatibility with linux"
brew install gnu-sed --with-default-names
## MONITORING
echo "Install btop and htop process managers"
brew install btop htop
echo "Install procs process manager, a ps alternative, use with sudo"
# https://github.com/dalance/procs
brew install procs
sudo tee -a /etc/sudoers <<< "$USER ALL= NOPASSWD: /usr/local/bin/procs"
source <(procs --gen-completion-out zsh)
## TEXT PROCESSING
echo "Install json viewer"
brew install jless
echo "Install hex, a binary viewer"
brew install hexyl
echo "Installing yq to parse yaml files, similar to jq"
brew install yq
echo "Installing jqp to manipulate json files, similar to jq"
brew install noahgorstein/tap/jqp
## NETWORKING
echo "Install wget to download files as alternative to curl"
brew install wget
echo "Install telnet for oldies"
brew install telnet
echo "Install tldr as alternative to man"
brew install tldr
# Install ai CLI
git clone https://github.com/tot-ra/ai-cli.git ~/ai-cli
cd ai-cli && go build ai.go