X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=roles%2Fshell%2Fbash%2Ftemplates%2Fbashrc.j2;h=c7f85224b579b28d436bc72eda2924e655b35df3;hb=d4357f69e1ccbb1c277f8978ea6f4a368b3ee3c2;hp=0dc80c0962da9f074424121615fb2dcf9e0cbf0b;hpb=9f528ac4c4ad219ce91f43d14a97401348f315f3;p=perso%2FImmae%2FConfig%2FAnsible.git diff --git a/roles/shell/bash/templates/bashrc.j2 b/roles/shell/bash/templates/bashrc.j2 index 0dc80c0..c7f8522 100644 --- a/roles/shell/bash/templates/bashrc.j2 +++ b/roles/shell/bash/templates/bashrc.j2 @@ -31,8 +31,6 @@ alias rm="rm -i" alias psp="pstree -aUp $USER" alias info='info -v active-link-style=yellow,bold -v link-style=yellow' -[[ -f /usr/share/stgit/completion/stgit-completion.bash ]] && . /usr/share/stgit/completion/stgit-completion.bash - if [[ -d "$XDG_DATA_HOME/bash_completion" ]]; then for i in $XDG_DATA_HOME/bash_completion/*; do [[ -f "$i" && -r "$i" ]] && . "$i" @@ -55,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 %}