Skip to content

Commit

Permalink
⚙️ Updates configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed Dec 22, 2023
1 parent 607369d commit e81ed5b
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions home/.virtualenvs/postactivate
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VIRTUAL_ENV_NAME=$(basename "${VIRTUAL_ENV}")
VIRTUAL_ENV_BIN="${VIRTUAL_ENV}/bin"
VIRTUAL_ENV_SRC="${VIRTUAL_ENV}/src"
VIRTUAL_ENV_ENVRC="${VIRTUAL_ENV_SRC}/.envrc"
VIRTUAL_ENV_STIGNORE="${VIRTUAL_ENV_SRC}/.stignore"

if [ -d "${VIRTUAL_ENV_SRC}" ]; then
# If our {{virtualenv}}/src folder exists, CD into that folder
Expand Down Expand Up @@ -35,6 +36,22 @@ if ! [ -e "${VIRTUAL_ENV_ENVRC}" ]; then
fi
fi

# Syncthing .stignore file...

if ! [ -e "${VIRTUAL_ENV_STIGNORE}" ]; then
touch ${VIRTUAL_ENV_STIGNORE}
echo "*.pyc" >> ${VIRTUAL_ENV_STIGNORE}
echo "*.pyi" >> ${VIRTUAL_ENV_STIGNORE}
echo ".*-cache/" >> ${VIRTUAL_ENV_STIGNORE}
echo ".DS_Store" >> ${VIRTUAL_ENV_STIGNORE}
echo ".jekyll-cache/" >> ${VIRTUAL_ENV_STIGNORE}
echo ".mypy_cache/" >> ${VIRTUAL_ENV_STIGNORE}
echo ".nox/" >> ${VIRTUAL_ENV_STIGNORE}
echo ".pytest_cache/" >> ${VIRTUAL_ENV_STIGNORE}
echo ".ruff_cache/" >> ${VIRTUAL_ENV_STIGNORE}
echo "docker-compose.override.yml" >> ${VIRTUAL_ENV_STIGNORE}
fi

# Create a SublimeText Project for our project
# if [ -d "${HOME}/Library/Application Support/Sublime Text 3/Packages/User/Projects" ]; then
# SUBLIME_TEXT_PROJECT_PATH="${HOME}/Library/Application Support/Sublime Text 3/Packages/User/Projects"
Expand Down Expand Up @@ -76,25 +93,6 @@ if ! [ -e "${PROJECT_FILE}" ]; then
fi


# Syncthing .stignore file...

STIGNORE_FILE="${VIRTUAL_ENV_SRC}/.stignore"

if ! [ -e "${STIGNORE_FILE}" ]; then
touch ${STIGNORE_FILE}
echo "*.pyc" >> ${STIGNORE_FILE}
echo "*.pyi" >> ${STIGNORE_FILE}
echo ".*-cache/" >> ${STIGNORE_FILE}
echo ".DS_Store" >> ${STIGNORE_FILE}
echo ".jekyll-cache/" >> ${STIGNORE_FILE}
echo ".mypy_cache/" >> ${STIGNORE_FILE}
echo ".nox/" >> ${STIGNORE_FILE}
echo ".pytest_cache/" >> ${STIGNORE_FILE}
echo ".ruff_cache/" >> ${STIGNORE_FILE}
echo "docker-compose.override.yml" >> ${STIGNORE_FILE}
fi


# Set our iTerm2 tab's title to our virtualenv name
# `npm install -g iterm2-tab-set`
if ! [ -e tabset ]; then
Expand Down

0 comments on commit e81ed5b

Please sign in to comment.