-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·56 lines (44 loc) · 1.56 KB
/
install.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
#!/bin/bash
set +e
# Setup fonts to be used for Alacritty
cp RobotoMonoNerdFontMono-Regular.ttf ~/.local/share/fonts/
# Install the packages that I usually use in a fresh Linux install
# Be aware these are only tested on Ubuntu 22.04
sudo apt update
sudo apt -y upgrade
sudo apt install tmux ranger highlight xclip python3-pip bat fzf exa ripgrep
# I have configured my bashrc to alias Ranger to do something slightly different, so copy ranger configs now.
ranger --copy-config=all
# I also use YCM so you will need this part.
sudo apt install build-essential cmake vim-nox python3-dev
sudo apt install mono-complete golang nodejs openjdk-17-jdk openjdk-17-jre npm
if [ -f ~/.vimrc ]; then
echo "~/.vimrc moved to ~/.vimrc_cp."
mv ~/.vimrc ~/.vimrc_cp
fi
ln -s $(pwd)/vimrc ~/.vimrc
# This should open vim. Close it after plugins are installed.
vim
# Complete YCM Setup
cd ~/.vim/plugged/youcompleteme
python3 install.py --all
cd ~/dotfiles
# Install Powerline
pip install --user powerline-status
# Sets aside exisitng config files, if they exist, and replaces them with the new files
# inside this folder.
if [ -f ~/.bashrc ]; then
echo "~/.bashrc moved to ~/.bashrc_cp."
mv ~/.bashrc ~/.bashrc_cp
fi
ln -s $(pwd)/bashrc ~/.bashrc
if [ -f ~/.tmux.conf ]; then
echo "~/.tmux.conf moved to ~/.tmux.conf_cp."
mv ~/.tmux.conf ~/.tmux.conf_cp
fi
ln -s $(pwd)/tmux.conf ~/.tmux.conf
if [ -f ~/.alacritty.yml ]; then
echo "~/.alacritty.yml moved to ~/.alacritty.yml_cp."
mv ~/.alacritty.yml ~/.alacritty.yml_cp
fi
ln -s $(pwd)/alacritty.yml ~/.alacritty.yml