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. # available, otherwise `xterm-256color` is used.
#TERM: alacritty #TERM: alacritty
#window: window:
# Window dimensions (changes require restart) # Window dimensions (changes require restart)
# #
# Number of lines/columns (not pixels) in the terminal. The number of columns # Number of lines/columns (not pixels) in the terminal. The number of columns
@ -63,7 +63,7 @@ import:
# Values for `decorations` (macOS only): # Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons # - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background and no title bar buttons # - buttonless: Title bar, transparent background and no title bar buttons
#decorations: full decorations: none
# Startup Mode (changes require restart) # 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: else:
return False return False
if self.source == 'npm': if self.source == 'npm':
if !(npm list -g @(self.name)).returncode == 0: if !(npm list -g --parseable --silent @(self.name)).returncode == 0:
return True return True
else: else:
return False return False
@ -29,12 +29,12 @@ class Package:
def install(self): def install(self):
if self.installed: if self.installed:
print(f"package '{self.name}' already installed.") print(f"package '{self.name}' already installed.")
return
elif self.source == 'apt': elif self.source == 'apt':
$(sudo apt-get install -qq --yes @(self.name)) $(sudo apt-get install -qq --yes @(self.name))
elif self.source == 'npm': elif self.source == 'npm':
$(npm install -g @(self.name)) $(npm install -g --silent --yes @(self.name))
elif self.source == 'pacman': elif self.source == 'pacman':
$(pacman -Syu @(self.name)) $(pacman -Syu @(self.name))
else: else:
print(f"unsupported package manager '{source}'.") print(f"unsupported package manager '{source}'.")