-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·43 lines (36 loc) · 1.44 KB
/
install.sh
File metadata and controls
executable file
·43 lines (36 loc) · 1.44 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
#!/usr/bin/sh
sudo apt-get update
sudo apt-get install lsd
dconf load -f / <settings.dconf
# .config
cp config/* -r ${HOME}/.config
cd /tmp
wget http://github.com/ryanoasis/nerd-fonts/releases/latest/download/JetBrainsMono.zip
mkdir "${HOME}/.local/share/fonts/"
unzip JetBrainsMono.zip -d "${HOME}/.local/share/fonts/JetBrains Mono NF"
cd -
# clang-format
cp .clang-format ${HOME}
# bash
wget https://github.com/git/git/raw/refs/heads/master/contrib/completion/git-prompt.sh
mv git-prompt.sh ${HOME}/.git-prompt.sh
cp bash/.bashrc ${HOME}
# zsh
echo "==== Installing zsh ===="
sudo apt-get install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cp zsh/my_robbyrussell.zsh-theme "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes"
cp zsh/.zshrc ${HOME}
git clone https://github.com/zsh-users/zsh-autosuggestions "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting"
# git
echo "==== Configure git ===="
git config --global user.name "mickleon"
git config --global user.email "mickleon64@gmail.com"
git config --global init.defaultBranch main
git config --global core.editor nvim
ssh-keygen -t ed25519 -C "mickleon64@gmail.com"
echo
echo "==== Add your SSH key to GitHub: ===="
cat ${HOME}/.ssh/id_ed25519.pub
# for nvim >= 0.12 install lua5.1-lpeg from luarocks