Skip to content

Commit

Permalink
cleaner bootstraps
Browse files Browse the repository at this point in the history
  • Loading branch information
pol committed Jan 22, 2021
1 parent 36c1428 commit d8e3883
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 48 deletions.
10 changes: 5 additions & 5 deletions .local/scripts/bootstrap/arch
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#! /usr/bin/env bash
### VARIABLES
scripts=$HOME/.local/scripts
source $scripts/bootstrap/arch_functions # Include functions
source $scripts/bootstrap/arch_functions # Include functions

### INSTALLATION
sudo pacman -Syu
echo "#! /bin/sh
export DISTRO=arch" > $HOME/.config/distro # Distro variable
yay_install # Needed to install AUR packages
export DISTRO=arch" > $HOME/.config/distro # Distro variable
yay_install # Needed to install AUR packages

### ONLY CHANGE FROM HERE ON
base_install
arch_install
i3_install

#applets # Installs Cinnamon applets # implement pending
#applets # Installs Cinnamon applets (implement pending)
#bloat_install
#cinnamon_install
#games_install
Expand All @@ -28,4 +28,4 @@ dwall
laptop_install
vim_install
wget -qO- https://git.io/papirus-folders-install | sh # Install folder colors https://github.com/PapirusDevelopmentTeam/papirus-folders
chsh -s $(which zsh) # Change default shell to zsh
chsh -s $(which zsh) # Change default shell to zsh
8 changes: 4 additions & 4 deletions .local/scripts/bootstrap/manjaro
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#! /usr/bin/env bash
### VARIABLES
scripts=$HOME/.local/scripts
source $scripts/bootstrap/arch_functions # Include functions
source $scripts/bootstrap/arch_functions # Include functions

### INSTALLATION
sudo pacman -Syu
echo "#! /bin/sh
export DISTRO=manjaro" > $HOME/.config/distro # Distro variable
export DISTRO=manjaro" > $HOME/.config/distro # Distro variable
yay_install # Needed to install AUR packages

### ONLY CHANGE FROM HERE ON
base_install
i3_install

#applets # Installs Cinnamon applets # implement pending
#applets # Installs Cinnamon applets # implement pending
#bloat_install
#cinnamon_install
#games_install
Expand All @@ -28,4 +28,4 @@ dwall
laptop_install
vim_install
wget -qO- https://git.io/papirus-folders-install | sh # Install folder colors https://github.com/PapirusDevelopmentTeam/papirus-folders
chsh -s $(which zsh) # Change default shell to zsh
chsh -s $(which zsh) # Change default shell to zsh
4 changes: 2 additions & 2 deletions .local/scripts/bootstrap/ubuntu
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash
### VARIABLES
scripts=$HOME/.local/scripts
source $scripts/bootstrap/ubuntu_functions # Include functions
source $scripts/bootstrap/ubuntu_functions # Include functions

### INSTALLATION
sudo apt-get update; sudo apt-get full-upgrade
Expand All @@ -22,4 +22,4 @@ i3_install
snap_install
ubuntu_install
vim_install
chsh -s $(which zsh) # Change default shell to zsh
chsh -s $(which zsh) # Change default shell to zsh
30 changes: 14 additions & 16 deletions .local/scripts/bootstrap/ubuntu_functions
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
base_install () { ## For windows install it's good to have this
# Fix some errors and cleanup
mkdir -p "$XDG_DATA_HOME"/vim/{undo,swap,backup} # Fixes vim
touch ~/.vim/cache/viminfo # viminfo
touch $HOME/.vim/cache/viminfo # viminfo
touch $XDG_DATA_HOME/vim/viminfo # viminfo
mkdir -p "~/.vim/cache/viminfo" # vim viminfo
mkdir ~/.cache/zsh
mkdir ~/.cache/vlc
mkdir $HOME/.cache/zsh
mkdir $HOME/.cache/vlc
sudo mkdir /var/lib/samba/usershares

# System tools
Expand Down Expand Up @@ -76,7 +76,7 @@ brew_install () {
brew update
brew upgrade
brew install gcc patchelf graphviz
brew install exa # "ls" on steroids
brew install exa # "ls" on steroids
}

chrome_install () {
Expand All @@ -86,12 +86,11 @@ chrome_install () {
}

emacs_install () {
sudo apt-get install emacs-gtk

sudo apt-get install emacs-gtk # Emacs
# Doom
# required dependencies
sudo apt-get install git ripgrep
# optional dependencies
sudo apt-get install tar fd-find clang
sudo apt-get install git ripgrep # required dependencies
sudo apt-get install tar fd-find clang # optional dependencies
}

i3_install () {
Expand Down Expand Up @@ -129,11 +128,10 @@ steam_install () {
}

vim_install () {
cd ~/
vim +PlugInstall +qall
# Vim YouCompleteMe plugin install
bash ~/scripts/ycm
sudo npm install -g neovim
python3 -m pip install --user --upgrade pynvim
sudo gem install neovim
cd $HOME
vim +PlugInstall +qall # Update plugins
bash $HOME/scripts/ycm # Vim YouCompleteMe plugin install
sudo npm install -g neovim # npm on neovim
python3 -m pip install --user --upgrade pynvim # Python for neovim
sudo gem install neovim # Gem for neovim
}
37 changes: 16 additions & 21 deletions .local/scripts/bootstrap/ubuntu_windows
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,24 @@

### VARIABLES
scripts=$HOME/.local/scripts
# Include functions
source $scripts/bootstrap/ubuntu_functions
source $scripts/bootstrap/ubuntu_functions # Include functions

### MAIN
echo "Is it the first time you run this script? [y/n]"
read FirstRun
if [[ $FirstRun == y ]]; then
echo "#! /bin/sh
export DISTRO=ubuntu" > ~/.config/distro
brew_install
fi
### INSTALLATION
sudo apt-get update; sudo apt-get full-upgrade # Update
echo "#! /bin/sh
export DISTRO=ubuntu" > $HOME/.config/distro
brew_install

### ONLY CHANGE FROM HERE ON
base_install
vim_install

#albert_install
#bloat_install
#chrome_install
#emacs_install
#i3_install
#snap_install
#steam_install
#ubuntu_install
if [[ $FirstRun == y ]]; then
#albert_install
#bloat_install
#chrome_install
#emacs_install
#i3_install
#snap_install
#steam_install
vim_install
fi
chsh -s $(which zsh) # Change default shell to zsh
chsh -s $(which zsh) # Change default shell to zsh

0 comments on commit d8e3883

Please sign in to comment.