Added node and bitwarden.

This commit is contained in:
2019-09-01 18:20:04 +12:00
parent c25c4844ee
commit 2b0937415f

View File

@ -20,7 +20,7 @@
#+NAME: Install standard packages
#+BEGIN_SRC tmate
sudo apt-get install -y git curl wget tmate locales xclip tmux net-tools less
\ software-properties-common htop wget
\ software-properties-common htop wget
#+END_SRC
@ -33,6 +33,25 @@
#+END_SRC
For additional package management we use node. The code below installs node ~12~.
#+NAME: Install node
#+BEGIN_SRC tmate
sudo curl -sL https://deb.nodesource.com/setup_12.x | bash -
sudo apt-get install -y nodejs
#+END_SRC
For managing secrets we use [[https://bitwarden.com/][bitwarden]] which provides a great [[https://github.com/bitwarden/cli][cli utility]].
#+NAME: Install bitwarden and login
#+BEGIN_SRC tmate
export account=[BITWARDEN_ACCOUNT]
sudo npm install -g @bitwarden/cli
bw login $account
#+END_SRC
* Install spacemacs
A key component in our environment is spacemacs. The section below will setup
@ -82,3 +101,18 @@
ln -sf ~/.emacs.d/private/local/dot-spacemacs/.spacemacs ~/.spacemacs
emacs --batch -l ~/.emacs.d/init.el
#+END_SRC
* Setup environment dotfiles
Within wsl we can use .dotfiles to further customise our environment. The script
below restores my versions of key dotfiles automatically.
#+NAME: Clone and restore the dotfiles
#+BEGIN_SRC tmate
git clone ssh://git@gitlab.jamma.life:2224/jmhbnz/tooling.git
cd /tooling/
mv * ~/
#+END_SRC