summaryrefslogtreecommitdiff
path: root/roles/shell/bash/templates
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-28 10:11:57 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-28 10:12:39 +0100
commitb7b8fe64fb3ed13ef535c7d4789da3a5001e355d (patch)
treea2f99cd0a18013f748d7817aa286f27effd23312 /roles/shell/bash/templates
parent386f9271125f93651cb20420de696efab8798fa9 (diff)
downloadAnsible-b7b8fe64fb3ed13ef535c7d4789da3a5001e355d.tar.gz
Ansible-b7b8fe64fb3ed13ef535c7d4789da3a5001e355d.tar.zst
Ansible-b7b8fe64fb3ed13ef535c7d4789da3a5001e355d.zip
Move environment file to template
Diffstat (limited to 'roles/shell/bash/templates')
-rw-r--r--roles/shell/bash/templates/bashrc.j29
1 files changed, 9 insertions, 0 deletions
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
53 TMUX_SESSION_NAME=$(tmux display-message -p "#S") 53 TMUX_SESSION_NAME=$(tmux display-message -p "#S")
54 export HISTFILE="$XDG_STATE_HOME/bash/tmux_${TMUX_SESSION_NAME}_history" 54 export HISTFILE="$XDG_STATE_HOME/bash/tmux_${TMUX_SESSION_NAME}_history"
55fi 55fi
56
57function load_dev_env() {
58 if [ -z "$1" ]; then
59 source ../environment
60 else
61 FL_ENV="$1" source ../environment
62 fi
63}
64
56##### /Fretlink 65##### /Fretlink
57{% endif %} 66{% endif %}
58 67