]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/shell/bash/templates/bashrc.j2
Move environment file to template
[perso/Immae/Config/Ansible.git] / roles / shell / bash / templates / bashrc.j2
index 135747573fdadee21d230378221252601609a73c..c7f85224b579b28d436bc72eda2924e655b35df3 100644 (file)
@@ -53,6 +53,15 @@ if [ -n "$TMUX" ]; then
   TMUX_SESSION_NAME=$(tmux display-message -p "#S")
   export HISTFILE="$XDG_STATE_HOME/bash/tmux_${TMUX_SESSION_NAME}_history"
 fi
+
+function load_dev_env() {
+  if [ -z "$1" ]; then
+    source ../environment
+  else
+    FL_ENV="$1" source ../environment
+  fi
+}
+
 ##### /Fretlink
 {% endif %}