lolcode and micro setup

This commit is contained in:
Reinaldy Rafli 2021-08-02 23:10:37 +07:00
parent 5a9a4ba562
commit b906363db5
7 changed files with 139 additions and 0 deletions

4
micro/bindings.json Normal file
View File

@ -0,0 +1,4 @@
{
"Alt-/": "lua:comment.comment",
"CtrlUnderscore": "lua:comment.comment"
}

View File

@ -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"

View File

@ -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"

7
micro/settings.json Normal file
View File

@ -0,0 +1,7 @@
{
"*.go": {
"tabstospaces": false
},
"colorscheme": "night-owl",
"tabsize": 2
}

23
scripts/lolcode.sh Executable file
View File

@ -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

26
scripts/micro.sh Executable file
View File

@ -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

View File

@ -8,6 +8,7 @@ BINDIR="${ME}/dotfiles/bin"
echo "I'm assuming you're doing a fresh install. Send a SIGTERM anytime you like." 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 install -y curl wget openssl tar unzip git
sudo apt-get install editorconfig
sudo chmod -R 755 ./scripts sudo chmod -R 755 ./scripts