Add ansible project support to gg function
This commit is contained in:
parent
58dcf4694f
commit
f3008294e4
@ -10,7 +10,9 @@ export PROJECTS_DIR="$HOME/Documents/projects"
|
|||||||
|
|
||||||
function gg() {
|
function gg() {
|
||||||
cd "$PROJECTS_DIR/$1";
|
cd "$PROJECTS_DIR/$1";
|
||||||
if [ -f "$PROJECTS_DIR/$1/pyproject.toml" ]; 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;
|
||||||
|
elif [ -f "$PROJECTS_DIR/$1/pyproject.toml" ]; then
|
||||||
poetry shell;
|
poetry shell;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user