Fix typo in bashrc for setting ansible path

This commit is contained in:
Ethan Paul 2022-05-24 23:22:19 -04:00
parent ce72850721
commit 11235ab859
Signed by: enpaul
GPG Key ID: 9B6D99E4CFA31867

View File

@ -11,7 +11,7 @@ export PROJECTS_DIR="$HOME/projects"
function gg() { function gg() {
cd "$PROJECTS_DIR/$1"; cd "$PROJECTS_DIR/$1";
if [ -f "$PROJECTS_DIR/$1/ansible.cfg" ]; then if [ -f "$PROJECTS_DIR/$1/ansible.cfg" ]; then
ANSIBLE_CONFIG="$PROJECTS_DIR/$1/ansible.cfg" ANSIBLE_COLLECTIONS_DIR="$PROJECTS_DIR/$1/.ansible" poetry shell; ANSIBLE_CONFIG="$PROJECTS_DIR/$1/ansible.cfg" ANSIBLE_COLLECTIONS_PATH="$PROJECTS_DIR/$1/.ansible" poetry shell;
elif [ -f "$PROJECTS_DIR/$1/pyproject.toml" ]; then elif [ -f "$PROJECTS_DIR/$1/pyproject.toml" ]; then
poetry shell; poetry shell;
fi fi