2021-08-15 15:51:24 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-08-02 16:10:37 +00:00
|
|
|
|
|
|
|
function install () {
|
2021-08-19 14:11:34 +00:00
|
|
|
cd ~
|
|
|
|
sudo apt-get install xclip
|
2021-08-02 16:10:37 +00:00
|
|
|
curl https://getmic.ro | bash
|
2021-08-17 05:08:52 +00:00
|
|
|
sudo mv micro /opt/bin
|
2021-08-15 15:51:24 +00:00
|
|
|
sudo rm $HOME/.config/micro/settings.json
|
|
|
|
sudo rm $HOME/.config/micro/bindings.json
|
|
|
|
sudo ln -s ${DOTFILES_PATH}/micro/settings.json $HOME/.config/micro/settings.json
|
|
|
|
sudo ln -s ${DOTFILES_PATH}/micro/bindings.json $HOME/.config/micro/bindings.json
|
|
|
|
sudo mkdir $HOME/.config/micro/colorschemes
|
|
|
|
sudo ln -s ${DOTFILES_PATH}/micro/colorschemes/night-owl.micro $HOME/.config/micro/colorschemes/night-owl.micro
|
|
|
|
sudo ln -s ${DOTFILES_PATH}/micro/colorschemes/light-owl.micro $HOME/.config/micro/colorschemes/light-owl.micro
|
2021-08-02 16:10:37 +00:00
|
|
|
micro -plugin install editorconfig
|
|
|
|
micro -plugin install filemanager
|
|
|
|
micro -plugin install go
|
2021-08-17 05:08:52 +00:00
|
|
|
printf "\n\n"
|
|
|
|
micro -version
|
2021-08-02 16:10:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function uninstall () {
|
2021-08-17 05:08:52 +00:00
|
|
|
sudo rm /opt/bin/micro
|
2021-08-02 16:10:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if [ "$1" == "install" ]; then
|
|
|
|
install
|
|
|
|
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
|
|
|
|
uninstall
|
|
|
|
else
|
|
|
|
echo "please specify args with install or uninstall"
|
2021-08-15 15:51:24 +00:00
|
|
|
fi
|