-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_ubuntu.sh
More file actions
executable file
·113 lines (94 loc) · 3.86 KB
/
install_ubuntu.sh
File metadata and controls
executable file
·113 lines (94 loc) · 3.86 KB
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
103
104
105
106
107
108
109
110
111
112
113
#!/bin/bash
#############################################################################################
# font
# https://www.nerdfonts.com/font-downloads
#
FONTPKG=SourceCodePro.zip
FONTPATH=https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1
wget -P ~/.local/share/fonts $FONTPATH/$FONTPKG &&
cd ~/.local/share/fonts &&
unzip $FONTPKG &&
rm $FONTPKG &&
fc-cache -fv
#############################################################################################
# common
sudo apt-get install -y eza bat ripgrep zoxide entr thefuck
sudo apt-get install -y mc ncdu btop htop
sudo apt-get install -y curl wget rsync lynx
sudo apt-get install -y unzip gzip tar
sudo apt-get install -y imagemagick libmagickwand-dev libgraphicsmagick1-dev chafa
# fzf
sudo apt-get purge -y fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# fd
sudo apt-get install -y fd-find
ln -s $(which fdfind) ~/.local/bin/fd
#############################################################################################
# terminal
# starship
curl -sS https://starship.rs/install.sh | sh
# kitty
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
ln -sf ~/.local/kitty.app/bin/kitty ~/.local/kitty.app/bin/kitten ~/.local/bin/
cp ~/.local/kitty.app/share/applications/kitty.desktop ~/.local/share/applications/
cp ~/.local/kitty.app/share/applications/kitty-open.desktop ~/.local/share/applications/
sed -i "s|Icon=kitty|Icon=$(readlink -f ~)/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" ~/.local/share/applications/kitty*.desktop
sed -i "s|Exec=kitty|Exec=$(readlink -f ~)/.local/kitty.app/bin/kitty|g" ~/.local/share/applications/kitty*.desktop
echo 'kitty.desktop' >~/.config/xdg-terminals.list
# zsh
sudo apt-get install -y zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# tmux
sudo apt-get install -y tmux
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
mkdir -p ~/.config/tmux/plugins/catppuccin
git clone -b v2.1.3 https://github.com/catppuccin/tmux.git ~/.config/tmux/plugins/captpuccin-tmux
# file manager - yazi, see rust
sudo apt-get -y install ffmpeg 7zip jq poppler-utils fd-find ripgrep fzf zoxide imagemagick
#############################################################################################
# nvim
# latex
sudo apt-get install texlive-latex-base
sudo apt-get install -y bibtex biber latexmk
pipx install pylatexenc
pipx install jupytext
# lua
sudo apt-get install -y luarocks
sudo luarocks install magick dkjson
# rust
sudo apt-get purge -y tree-sitter
sudo apt-get install -y rustup
rustup default stable
rustup update
rustup component add rust-analyzer
cargo install tree-sitter-cli gitlab-ci-ls ast-grep
cargo install --force yazi-build
# node
sudo apt-get install -y npm
sudo npm install -g neovim
sudo npm install prettier --global
sudo npm install markdownlint-cli2 --global
sudo npm install markdown-toc --global
sudo npm install -g @mermaid-js/mermaid-cli
sudo npm install -g homeassistant-lsp
# python
sudo apt-get install -y python3-pip python3-venv python3-neovim
# neovim
#sudo add-apt-repository ppa:neovim-ppa/unstable
#sudo apt-get update
#sudo apt-get install neovim
sudo apt-get purge neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz
# git
sudo apt-get install -y git git-delta
#sudo add-apt-repository ppa:lazygit-team/release
#sudo apt update
#sudo apt install lazygit
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
#brew install lazydocker