From ae1dce61cf8854d7db12136f5a31024cb5aadf54 Mon Sep 17 00:00:00 2001 From: mlunax Date: Thu, 24 Sep 2020 01:22:24 +0200 Subject: [PATCH] feat: simple bash script to intalling vscodium and extention to it --- install-code.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install-code.sh diff --git a/install-code.sh b/install-code.sh new file mode 100644 index 0000000..d0ba991 --- /dev/null +++ b/install-code.sh @@ -0,0 +1,17 @@ +#!/bin/bash +source /etc/lsb-release +if [ $# -eq 1 ] && [ $1 == "-h" ]; then + echo https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions + exit +fi +if [ 0 -eq $(id -u) ]; then + echo Don\'t run this script as root, please. + echo If it will need permission it will use 'sudo' command. +else + if [ $DISTRIB_ID == "ManjaroLinux" ]; then + sudo pacman -S ttf-fira-code + yay -S vscodium-bin + code --install-extension akamud.vscode-theme-onedark + code --install-extension vscode-icons-team.vscode-icons + fi +fi \ No newline at end of file