1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00
Files
dotfiles/bin/clean_project

13 lines
390 B
Bash
Executable File

#!/bin/bash
read -p "Close vim and stop running (Python) processes. Type 'c' to continue after doing so, any other key to abort. " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Cc]$ ]]
then
# do semi-dangerous stuff
find . -name "*.pyc" -type f -delete
find . -name "*.swp" -type f -delete
find . -name "*.swo" -type f -delete
else
echo "aborted"
fi