-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·119 lines (94 loc) · 3.05 KB
/
install.sh
File metadata and controls
executable file
·119 lines (94 loc) · 3.05 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
114
115
116
117
118
119
#!/usr/bin/env bash
# Get the latest package lists
sudo apt update
sudo apt upgrade
# Install and start snap
sudo apt install snapd # install snapd to install packages
sudo snap install core # install snapd runtime env
sudo snap install curl # install curl command, used later
sudo apt-get install cowsay fortune lolcat
## Languages!
# install c++ content
sudo apt install build-essential
sudo snap install clangd --classic
# install nodejs content
sudo snap install node --classic
# Install python content
sudo snap install pyright --classic
# Remove old files
rm -rf ~/.local/share/nvim
rm -rf ~/.config/nvim
## Tools for VIM/NVIM
# BurntSushi/ripgrep github
sudo apt-get install ripgrep
# Install Universal ctags for gutentags
sudo apt install universal-ctags
# }}}
# NVIM {{{
# Install neovim
# nightly builds for latest, from https://github.com/neovim/neovim/blob/master/INSTALL.md
sudo snap install --edge nvim --classic
# setup the configuration
mkdir -p ~/.config/
cp -r nvim/config/nvim ~/.config/nvim
# Install vim
sudo apt install vim
# }}}
# VIM {{{
mkdir -p ~/.vim
mkdir -p ~/.vim/bundle # for pathogen https://github.com/tpope/vim-pathogen
mkdir -p ~/.vim/skeleton
# Install pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim > ~/.vim/autoload/pathogen.vim
# NOTE: THE URL for Pathogen changed. The old curl command was:
# curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# Copy necessary config files
cp vim/vimrc ~/.vim/vimrc
cp vim/skeleton/* ~/.vim/skeleton/
# install gruvbox
# mkdir -p ~/.vim/colors
# curl -LSso https://raw.githubusercontent.com/morhetz/gruvbox/master/colors/gruvbox.vim > ~/.vim/colors/gruvbox.vim
REPOS=(
"https://github.com/ludovicchabant/vim-gutentags.git"
"https://github.com/justinmk/vim-dirvish.git"
"https://github.com/vim-airline/vim-airline.git"
"https://github.com/morhetz/gruvbox.git"
)
# install all of the repos that we don't require any special config
pushd ~/.vim/bundle/
for REPO in ${REPOS[@]}
do
git clone ${REPO}
done
# Probably don't need to handle, the gruvbox will install from pathogen
# mv ~/.vim/bundle/gruvbox/colors/* ~/.vim/colors/
# mv ~/.vim/bundle/gruvbox/autoload/* ~/.vim/autoload/
popd
# }}}
# TMUX {{{
# Add the Tmux content
# Uses TPM for package manager
if [[ ! -d ~/.tmux/plugins/tpm ]]
then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
cp tmux/tmux.conf ~/.tmux.conf
# Need to install packages with Prefix+I
# }}}
# Bash Setup {{{
if [[ ! -f ~/.bash_aliases ]]
then
cp bash/bash_aliases ~/.bash_aliases
fi
# Add a nice fortune teller to bashrc
sudo apt-get install cowsay fortune lolcat
# Only add grep
if [[ -z $(grep -F "fortune | cowsay | lolcat" ~/.bashrc) ]]
then
echo "fortune | cowsay | lolcat" >> ~/.bashrc
fi
# Add in the Tao of the Programming to fortune teller
sudo sh -c 'cat fortune/tao-compressed | base64 -d | gunzip > /usr/share/games/fortunes/tao'
sudo strfile -c % /usr/share/games/fortunes/tao /usr/share/games/fortunes/tao.dat
# }}}