X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FAnsible.git;a=blobdiff_plain;f=roles%2Fshell%2Fbash%2Ftemplates%2Fbashrc.j2;h=c7f85224b579b28d436bc72eda2924e655b35df3;hp=135747573fdadee21d230378221252601609a73c;hb=b7b8fe64fb3ed13ef535c7d4789da3a5001e355d;hpb=386f9271125f93651cb20420de696efab8798fa9 diff --git a/roles/shell/bash/templates/bashrc.j2 b/roles/shell/bash/templates/bashrc.j2 index 1357475..c7f8522 100644 --- a/roles/shell/bash/templates/bashrc.j2 +++ b/roles/shell/bash/templates/bashrc.j2 @@ -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 %}