|
|
@ -84,10 +84,16 @@ Define some helper methods to use throughout the configuration. |
|
|
|
|
|
|
|
Define a method to install system packages on *Debian/Ubuntu* derived systems. |
|
|
|
|
|
|
|
+ Use temporary buffer |
|
|
|
+ Use ~-y~ option to silence unwanted prompts |
|
|
|
+ Use ~--no-install-recommends~ option to minimize dependencies |
|
|
|
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
(defun dotfiles/install (pkgs) |
|
|
|
"Install system packages on Debian/Ubuntu systems." |
|
|
|
(async-shell-command (concat "sudo apt install -y " pkgs))) |
|
|
|
(with-temp-buffer |
|
|
|
(async-shell-command |
|
|
|
(concat "sudo apt install -y --no-install-recommends " pkgs)))) |
|
|
|
#+end_src |
|
|
|
|
|
|
|
** Tangle directory |
|
|
|