diff --git a/micro/bindings.json b/micro/bindings.json new file mode 100644 index 0000000..0733926 --- /dev/null +++ b/micro/bindings.json @@ -0,0 +1,4 @@ +{ + "Alt-/": "lua:comment.comment", + "CtrlUnderscore": "lua:comment.comment" +} \ No newline at end of file diff --git a/micro/colorschemes/light-owl.micro b/micro/colorschemes/light-owl.micro new file mode 100644 index 0000000..acf1385 --- /dev/null +++ b/micro/colorschemes/light-owl.micro @@ -0,0 +1,39 @@ +color-link default "#403f53,#FBFBFB" # ok +color-link color-column "#1B1B1B" +color-link comment "#637777" # ok +color-link constant "#5ca7e4" # ok +color-link constant.bool "#bc5454" # ok +color-link constant.bool.false "#bc5454" # ok +color-link constant.bool.true "#bc5454" # ok +color-link constant.number "#F78C6C" # ok +color-link constant.specialChar "#DDF2A4" # ok +color-link constant.string "#c96765" # ok +color-link cursor-line "#E0E0E0" # ok +color-link divider "#1E1E1E" +color-link error "#FFFFFF,#ff2c83" # ok +color-link diff-added "#8FBCBB" # ok +color-link diff-modified "#8FBCBB" # ok +color-link diff-deleted "#D70000" # ok +color-link gutter-error "#9B859D" +color-link gutter-warning "#9B859D" +color-link identifier "#ff0000" +color-link identifier.macro "" +color-link identifier.class "#c792ea" # ok +color-link identifier.var "#0c969b" # ok +color-link indent-char "#515151" +color-link current-line-number "#403f53,#E0E0E0" # ok +color-link line-number "#90A7B2,#FBFBFB" +color-link preproc "#E0C589" +color-link preproc.shebang "#637777" # ok +color-link special "#E0C589" +color-link statement "#c792ea" # ok +color-link statusline "#403f53,#E0E0E0" # ok +color-link symbol "#994cc3" +color-link symbol.brackets "#403f53" # ok +color-link symbol.operator "#994cc3" # ok +color-link symbol.tag "#994cc3" # ok +color-link tabbar "#403f53,#E0E0E0" +color-link todo "#8B98AB" +color-link type "#0c969b" # ok +color-link type.keyword "#ffffff" +color-link underlined "#8996A8" \ No newline at end of file diff --git a/micro/colorschemes/night-owl.micro b/micro/colorschemes/night-owl.micro new file mode 100644 index 0000000..83cce4e --- /dev/null +++ b/micro/colorschemes/night-owl.micro @@ -0,0 +1,39 @@ +color-link default "#D6DEEB,#011627" # ok +color-link color-column "#1B1B1B" +color-link comment "#637777" # ok +color-link constant "#5ca7e4" # ok +color-link constant.bool "#ff5874" # ok +color-link constant.bool.false "#ff5874" # ok +color-link constant.bool.true "#ff5874" # ok +color-link constant.number "#F78C6C" # ok +color-link constant.specialChar "#DDF2A4" # ok +color-link constant.string "#ECC48D" # ok +color-link cursor-line "#01121f" # ok +color-link divider "#1E1E1E" +color-link error "#FFFFFF,#ff2c83" # ok +color-link diff-added "#8FBCBB" # ok +color-link diff-modified "#8FBCBB" # ok +color-link diff-deleted "#D70000" # ok +color-link gutter-error "#9B859D" +color-link gutter-warning "#9B859D" +color-link identifier "#c5e478" +color-link identifier.macro "" +color-link identifier.class "#c792ea" # ok +color-link identifier.var "#c5e478" # ok +color-link indent-char "#515151" +color-link current-line-number "#4b6479,#000000" # ok +color-link line-number "#868686,#1B1B1B" +color-link preproc "#E0C589" +color-link preproc.shebang "#ef1f23" # ok +color-link special "#E0C589" +color-link statement "#c792ea" # ok +color-link statusline "#D6DEEB,#011627" # ok +color-link symbol "#AC885B" +color-link symbol.brackets "#ffd70d" # ok +color-link symbol.operator "#c792ea" # ok +color-link symbol.tag "#AC885B" # ok +color-link tabbar "#F2F0EC,#2D2D2D" +color-link todo "#8B98AB" +color-link type "#c5e478" # ok +color-link type.keyword "#c5e478" +color-link underlined "#8996A8" \ No newline at end of file diff --git a/micro/settings.json b/micro/settings.json new file mode 100644 index 0000000..fa6a219 --- /dev/null +++ b/micro/settings.json @@ -0,0 +1,7 @@ +{ + "*.go": { + "tabstospaces": false + }, + "colorscheme": "night-owl", + "tabsize": 2 +} diff --git a/scripts/lolcode.sh b/scripts/lolcode.sh new file mode 100755 index 0000000..1bfe574 --- /dev/null +++ b/scripts/lolcode.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +function install () { + git clone https://github.com/justinmeza/lci.git + cd lci + cmake . + make + sudo make install + cd .. + rm -rf lci +} + +function uninstall () { + rm -rf /usr/local/bin/lci +} + +if [ "$1" == "install" ]; then + install +elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then + uninstall +else + echo "please specify args with install or uninstall" +fi \ No newline at end of file diff --git a/scripts/micro.sh b/scripts/micro.sh new file mode 100755 index 0000000..23ca0bb --- /dev/null +++ b/scripts/micro.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +function install () { + curl https://getmic.ro | bash + sudo mv micro /usr/bin + ln -s $HOME/dotfiles/micro/settings.json $HOME/.config/micro/settings.json + ln -s $HOME/dotfiles/micro/bindings.json $HOME/.config/micro/bindings.json + mkdir ~/.config/micro/colorschemes + ln -s $HOME/dotfiles/micro/colorschemes/night-owl.micro $HOME/.config/micro/colorschemes/night-owl.micro + ln -s $HOME/dotfiles/micro/colorschemes/light-owl.micro $HOME/.config/micro/colorschemes/light-owl.micro + micro -plugin install editorconfig + micro -plugin install filemanager + micro -plugin install go +} + +function uninstall () { + sudo rm /usr/bin/micro +} + +if [ "$1" == "install" ]; then + install +elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then + uninstall +else + echo "please specify args with install or uninstall" +fi \ No newline at end of file diff --git a/setup.sh b/setup.sh index 2155d2c..a5750d3 100755 --- a/setup.sh +++ b/setup.sh @@ -8,6 +8,7 @@ BINDIR="${ME}/dotfiles/bin" echo "I'm assuming you're doing a fresh install. Send a SIGTERM anytime you like." sudo apt install -y curl wget openssl tar unzip git +sudo apt-get install editorconfig sudo chmod -R 755 ./scripts