From f4ec70c60338862dbebee3e9f44817bcf84e5c8e Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 10 Sep 2018 17:04:55 -0400 Subject: [PATCH] Update yarn config --- sh/languages/401-node | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sh/languages/401-node b/sh/languages/401-node index 6e2528d..d9906b5 100644 --- a/sh/languages/401-node +++ b/sh/languages/401-node @@ -5,7 +5,14 @@ # Yarn is the preferred dependency manager, however, some programs # have npm hard-coded as a dependency, so we install that as well. # +# We set the yarn prefix to /usr/local so libraries installed +# globally with yarn are automatically in our $PATH. +# +# We enable emojis since our terminal (termite) supports them. A +# nice addition for some added flair. +# # https://wiki.archlinux.org/index.php/Node.js +# https://yarnpkg.com/en/docs/cli/global set -xe @@ -14,3 +21,7 @@ sudo pacman -S nodejs sudo pacman -S npm sudo pacman -S yarn + +yarn config set prefix /usr/local + +yarn config set -- --emoji true