1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-12 05:40:17 +00:00
dotfiles/install-code.sh
2020-12-29 23:44:57 +01:00

18 lines
No EOL
602 B
Bash

#!/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
sudo ln -s /usr/bin/vscode /usr/bin/code
code --install-extension akamud.vscode-theme-onedark
code --install-extension vscode-icons-team.vscode-icons
fi
fi