]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
Add nodejs history variable
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Tue, 13 Nov 2018 00:01:55 +0000 (01:01 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Tue, 13 Nov 2018 00:01:55 +0000 (01:01 +0100)
roles/contexts/fretlink/defaults/main.yml
roles/init/templates/pam_environment.j2
roles/programming/nodejs/tasks/main.yml

index ee9836fb09951bb305d51b8ce7d894208c64ae22..101c9aab8f299464652a863ad0ba744819f71270 100644 (file)
@@ -4,6 +4,7 @@ zeal_roles:
   - Bash
   - Docker
   - Haskell
+  - JavaScript
   - MongoDB
   - NodeJS
   - PostgreSQL
index 0eb0f8977675ca1119dfad239663ae0640911b4f..65b92e7d428edfbf416d72a25441546f60c4ac2c 100644 (file)
@@ -61,6 +61,7 @@ STACK_ROOT                    DEFAULT="${XDG_DATA_HOME}/stack"
 # Nodejs
 NVM_DIR                                DEFAULT="${XDG_DATA_HOME}/nvm"
 NPM_CONFIG_USERCONFIG          DEFAULT="${XDG_CONFIG_HOME}/npm/npmrc"
+NODE_REPL_HISTORY              DEFAULT="${XDG_STATE_HOME}/nodejs/repl_history"
 
 # TMUX
 TMUX_TMPDIR                    DEFAULT="${XDG_RUNTIME_DIR}"
index eef4d2fd339146dc711a16755919f5c49aacf39f..fdcd6781d561b930665d046edc57e74c18055ef3 100644 (file)
@@ -5,6 +5,10 @@
     path: "$XDG_CONFIG_HOME/{{ item }}"
   loop:
     - npm
+- name: State dirs
+  file:
+    state: directory
+    path: "$XDG_STATE_HOME/nodejs"
 - name: config file
   copy:
     src: npmrc