From ff84c82c4eb4d8a89df0ae6fb7577fcf66ba1fd4 Mon Sep 17 00:00:00 2001 From: samedamci Date: Tue, 8 Oct 2019 19:16:23 +0200 Subject: [PATCH] Add installer script --- .config/ranger/rc.conf | 1 + INSTALLATION.md | 43 ------------------------------------------ README.md | 3 ++- installer.py | 16 ++++++++++++++++ 4 files changed, 19 insertions(+), 44 deletions(-) create mode 100644 .config/ranger/rc.conf delete mode 100644 INSTALLATION.md create mode 100755 installer.py diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf new file mode 100644 index 0000000..ceda364 --- /dev/null +++ b/.config/ranger/rc.conf @@ -0,0 +1 @@ +set show_hidden true diff --git a/INSTALLATION.md b/INSTALLATION.md deleted file mode 100644 index d1a633a..0000000 --- a/INSTALLATION.md +++ /dev/null @@ -1,43 +0,0 @@ -# Basic -## Install dependencies -```bash -yay -S polybar st ttf-dejavu-ib wget neovim qutebrowser -``` -## Install oh-my-zsh -```bash -sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" -``` -## Install zsh-syntax-highlighting plugin to oh-my-zsh -```bash -cd ~/oh-my-zsh/plugins -git clone https://github.com/zsh-users/zsh-syntax-highlighting.git -``` -## Copy configs -```bash -cp .zshrc ~ -cp -r .config ~ -``` -# NeoVim -## Install VimPlug -To install plugins to Vim/NeoVim 'u' must have VimPlug or other Vim plugins loader. -```bash -curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -``` -If you don't have *curl* install it. -## Copy config -```bash -cp -r nvim ~/.config -``` -If folder not exist create it: `mkdir .config`. -## Load plugins -* Open NeoVim: `nvim`. -* Click ":" on keyboard. -* Use `PlugInstall` command. -* Exit, click "esc" key, use `:q! command. -## Install python package to use plugins -If you don't have python 3.x install it from your distro repo. -```bash -pip3 install --user neovim -``` - diff --git a/README.md b/README.md index 33d8b0b..39ad5bf 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ | |_) || || |_| || (_| || | _| (__| (_) || | | || _| |_.__/ |_| \__,_| \__,_||_|(_)\___|\___/ |_| |_||_| ``` -# [Installation](INSTALLATION.md) +# Installation +To install setup go to repo on your disk and use `./installer.py` script. ## My setup * distro: arch linux diff --git a/installer.py b/installer.py new file mode 100755 index 0000000..c89ece7 --- /dev/null +++ b/installer.py @@ -0,0 +1,16 @@ +#!/bin/python3 + +import os + +os.system('yay -Sy --noconfirm python-pip git polybar ttf-dejavu-ib wget curl neovim qutebrowser') +os.system('sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"') +os.system('git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.oh-my-zsh/plugins') +os.system('cp .zshrc $HOME && cp -r .config $HOME') +os.system('curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim') +os.system('pip3 install --user neovim') +os.system('nvim --headless -c PlugInstall -c q -c q') +os.system('git clone https://github.com/samedamci/st-fork.git $HOME/.st') +os.system('cd $HOME/.st && make && sudo make clean install && rm -rf $HOME/.st && clear') + +print("Done.")