diff --git a/.vim/bundle/Vundle.vim b/.vim/bundle/Vundle.vim index 6437ad6..9a38216 160000 --- a/.vim/bundle/Vundle.vim +++ b/.vim/bundle/Vundle.vim @@ -1 +1 @@ -Subproject commit 6437ad6df4a3e6a87c5fb8bd2b8aadb277ec9c87 +Subproject commit 9a38216a1c0c597f978d73547d37681fc689c90d diff --git a/.vimrc b/.vimrc index 26d302b..59969dc 100644 --- a/.vimrc +++ b/.vimrc @@ -14,7 +14,9 @@ Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'Yggdroot/indentLine' Plugin 'ajh17/VimCompletesMe' -Plugin 'ctrlpvim/ctrlp.vim' +"Plugin 'ctrlpvim/ctrlp.vim' +Plugin 'mhinz/vim-startify' +Plugin 'vim-syntastic/syntastic' " All of your Plugins must be added before the following line call vundle#end() " required diff --git a/init.sh b/init.sh index 157df82..727071d 100755 --- a/init.sh +++ b/init.sh @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/bash #install pre-req. echo "installing required packages" ./deps.zsh diff --git a/package.patch b/package.patch deleted file mode 100644 index 108aeff..0000000 --- a/package.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- packages.el 2017-09-26 14:44:01.743525901 -0400 -+++ packages_fixed.el 2017-09-26 14:37:53.824574000 -0400 -@@ -37,7 +37,7 @@ - dracula-theme - espresso-theme - farmhouse-theme -- firebelly-theme -+ ;firebelly-theme - flatland-theme - flatui-theme - gandalf-theme -@@ -64,14 +64,14 @@ - monochrome-theme - mustang-theme - naquadah-theme -- niflheim-theme -+ ;niflheim-theme - noctilux-theme - obsidian-theme - occidental-theme - omtose-phellack-theme - oldlace-theme - organic-green-theme -- pastels-on-dark-theme -+ ;pastels-on-dark-theme - phoenix-dark-mono-theme - phoenix-dark-pink-theme - planet-theme -@@ -98,7 +98,7 @@ - ;; contains error - ; tommyh-theme - toxi-theme -- tronesque-theme -+ ;tronesque-theme - twilight-anti-bright-theme - twilight-bright-theme - twilight-theme diff --git a/scripts/swapcaps.sh b/scripts/escaps.sh similarity index 100% rename from scripts/swapcaps.sh rename to scripts/escaps.sh diff --git a/scripts/iosch.sh b/scripts/iosch.sh index 92648a3..16d48ce 100755 --- a/scripts/iosch.sh +++ b/scripts/iosch.sh @@ -1,4 +1,9 @@ -echo "# set cfq scheduler for rotating disks" >> /etc/udev/rules.d/60-schedulers.rules -echo "ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq"" >> /etc/udev/rules.d/60-schedulers.rules -echo "# set deadline scheduler for non-rotating disks" >> /etc/udev/rules.d/60-schedulers.rules -echo "ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"" >> /etc/udev/rules.d/60-schedulers.rules +sudo touch /etc/udev/rules.d/60-schedulers.rules +sudo cat > /etc/udev/rules.d/60-schedulers.rules << EOF +#set cfq scheduler for rotating disks +ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="cfq" + +#set deadline scheduler for non-rotating disks +ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline" +EOF + diff --git a/scripts/swappiness.sh b/scripts/swappiness.sh index d375a43..3187e09 100755 --- a/scripts/swappiness.sh +++ b/scripts/swappiness.sh @@ -1,8 +1,14 @@ #!/bin/sh -if [ $1 -n] -then - echo "Please provide a number to set swappiness value!" && exit 1 -else - echo "vm.swappiness="$1 +if [ $(id -u) -ne 0 ] + then echo "Please run as root" + exit 1 +fi + +if [ -z "$1" ] +then + echo "Please provide a number to set swappiness value!" && exit 2 +else + sudo echo "vm.swappiness="$1 >> /etc/sysctl.conf + sudo sysctl -p fi diff --git a/spacemacs.zsh b/spacemacs.zsh index 2ed564f..5c71ac8 100755 --- a/spacemacs.zsh +++ b/spacemacs.zsh @@ -2,8 +2,3 @@ ln -s /home/`whoami`/stevset/.spacemacs /home/`whoami`/.spacemacs #init spacemacs in the background git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d -#Patch theme file to squelch error messages -cp package.patch /home/stev/.emacs.d/layers/+themes/themes-megapack/ -cd /home/`whoami`/.emacs.d/layers/+themes/themes-megapack -patch < package.patch -rm package.patch