This commit is contained in:
riley 2021-09-22 21:39:20 -04:00
parent 79d29be22b
commit 9a12259f09
3 changed files with 5 additions and 15 deletions

View file

@ -25,7 +25,7 @@ import:
# available, otherwise `xterm-256color` is used.
#TERM: alacritty
#window:
window:
# Window dimensions (changes require restart)
#
# Number of lines/columns (not pixels) in the terminal. The number of columns
@ -63,7 +63,7 @@ import:
# Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background and no title bar buttons
#decorations: full
decorations: none
# Startup Mode (changes require restart)
#

View file

@ -1,10 +0,0 @@
/**
* @name Dracula Theme
* @author Kabir Kwatra
* @authorId 168376512272269313
* @version 1.0.0
* @description 🧛🏻 Dark theme for all the things
* @source https://github.com/Dracula/BetterDiscord
**/
@import url("https://dracula.github.io/betterdiscord/base.css")

View file

@ -19,7 +19,7 @@ class Package:
else:
return False
if self.source == 'npm':
if !(npm list -g @(self.name)).returncode == 0:
if !(npm list -g --parseable --silent @(self.name)).returncode == 0:
return True
else:
return False
@ -29,12 +29,12 @@ class Package:
def install(self):
if self.installed:
print(f"package '{self.name}' already installed.")
return
elif self.source == 'apt':
$(sudo apt-get install -qq --yes @(self.name))
elif self.source == 'npm':
$(npm install -g @(self.name))
$(npm install -g --silent --yes @(self.name))
elif self.source == 'pacman':
$(pacman -Syu @(self.name))
else:
print(f"unsupported package manager '{source}'.")