From 4ed5c83fc841e220514eba0e50c380b6efa2372a Mon Sep 17 00:00:00 2001 From: Luddifee Date: Tue, 8 Dec 2020 15:11:27 +0100 Subject: [PATCH] general update --- git/setup.sh => git-setup.sh | 0 setup-terminal.sh | 6 ++++ terminal/kitty.conf | 30 ------------------- terminal/setup-terminal.sh | 16 ---------- update-pacman-mirrors.sh | 15 ++++++++++ vim/vim-setup.sh => vim-setup.sh | 0 vim/vimrc => vimrc | 0 .../setup.sh => wifi-usb-setup.sh | 1 + ycm-compile/ycm-compile.sh | 5 ---- 9 files changed, 22 insertions(+), 51 deletions(-) rename git/setup.sh => git-setup.sh (100%) mode change 100644 => 100755 create mode 100755 setup-terminal.sh delete mode 100755 terminal/kitty.conf delete mode 100644 terminal/setup-terminal.sh create mode 100755 update-pacman-mirrors.sh rename vim/vim-setup.sh => vim-setup.sh (100%) rename vim/vimrc => vimrc (100%) mode change 100755 => 100644 rename wifi-stick-setup/setup.sh => wifi-usb-setup.sh (92%) mode change 100644 => 100755 delete mode 100644 ycm-compile/ycm-compile.sh diff --git a/git/setup.sh b/git-setup.sh old mode 100644 new mode 100755 similarity index 100% rename from git/setup.sh rename to git-setup.sh diff --git a/setup-terminal.sh b/setup-terminal.sh new file mode 100755 index 0000000..6dc0b57 --- /dev/null +++ b/setup-terminal.sh @@ -0,0 +1,6 @@ +# install python3 and pip3 +sudo pacman -S python3 python3-pip --noconfirm + +# install alacritty +sudo pacman -S alacritty --noconfirm + diff --git a/terminal/kitty.conf b/terminal/kitty.conf deleted file mode 100755 index 769db42..0000000 --- a/terminal/kitty.conf +++ /dev/null @@ -1,30 +0,0 @@ -font_family JetBrains Mono Extra -bold_font auto -italic_font auto -bold_italic_font auto -font_size 14 -cursor_shape beam - -background #002b36 -foreground #839496 -cursor #93a1a1 - -selection_background #81908f -selection_foreground #002831 - -color0 #073642 -color1 #dc322f -color2 #859900 -color3 #b58900 -color4 #268bd2 -color5 #d33682 -color6 #2aa198 -color7 #eee8d5 -color9 #cb4b16 -color8 #002b36 -color10 #586e75 -color11 #657b83 -color12 #839496 -color13 #6c71c4 -color14 #93a1a1 -color15 #fdf6e3 diff --git a/terminal/setup-terminal.sh b/terminal/setup-terminal.sh deleted file mode 100644 index a3b8ab4..0000000 --- a/terminal/setup-terminal.sh +++ /dev/null @@ -1,16 +0,0 @@ -# install python3 and pip3 -sudo apt install python3 python3-pip --assume-yes - -# install pip3 powerline -sudo pip3 install git+git://github.com/powerline/powerline -wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf -sudo mv PowerlineSymbols.otf /usr/share/fonts/ -sudo fc-cache -vf -sudo mv 10-powerline-symbols.conf /etc/fonts/conf.d/ - -# install kitty -sudo apt install kitty --assume-yes - -# copy kitty config -cp kitty.conf ~/.config/kitty/kitty.conf - diff --git a/update-pacman-mirrors.sh b/update-pacman-mirrors.sh new file mode 100755 index 0000000..edb7fa3 --- /dev/null +++ b/update-pacman-mirrors.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ "$EUID" -ne 0 ] + then echo "Please run as root!" + exit +fi + +if [ ! -f /etc/pacman.d/mirrorlist.backup ] ; then + echo "creating /etc/pacman.d/mirrorlist.backup ..." + cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup +fi + +echo "Ranking servers ..." +curl -s "https://www.archlinux.org/mirrorlist/?country=DE&country=FR&country=GB&country=NL&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 500 - > /etc/pacman.d/mirrorlist + diff --git a/vim/vim-setup.sh b/vim-setup.sh similarity index 100% rename from vim/vim-setup.sh rename to vim-setup.sh diff --git a/vim/vimrc b/vimrc old mode 100755 new mode 100644 similarity index 100% rename from vim/vimrc rename to vimrc diff --git a/wifi-stick-setup/setup.sh b/wifi-usb-setup.sh old mode 100644 new mode 100755 similarity index 92% rename from wifi-stick-setup/setup.sh rename to wifi-usb-setup.sh index 576f64c..b5f5785 --- a/wifi-stick-setup/setup.sh +++ b/wifi-usb-setup.sh @@ -1,4 +1,5 @@ #!/usr/bin/bash +cd ~/Downloads git clone https://github.com/cilynx/rtl88x2bu.git sudo dkms add ./rtl88x2bu sudo dkms install rtl88x2bu/5.6.1 diff --git a/ycm-compile/ycm-compile.sh b/ycm-compile/ycm-compile.sh deleted file mode 100644 index 73cc086..0000000 --- a/ycm-compile/ycm-compile.sh +++ /dev/null @@ -1,5 +0,0 @@ -# install dependencies -sudo apt install build-essential cmake vim-nox python3-dev mono-complete golang nodejs default-jdk npm --assume-yes - -# compile ycm -python3 ~/.vim/plugged/youcompleteme/install.py --all