Tell Time Machine that it doesn’t need to back up the .venv directory
- ID
3e0dfaf- date
2024-02-06 20:28:04+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
cf613b7- message
Tell Time Machine that it doesn't need to back up the .venv directory- changed files
1 file, 4 additions
Changed files
fish_functions/venv.fish (646) → fish_functions/venv.fish (773)
diff --git a/fish_functions/venv.fish b/fish_functions/venv.fish
index 9812965..5d08932 100644
--- a/fish_functions/venv.fish
+++ b/fish_functions/venv.fish
@@ -16,4 +16,8 @@ function venv --description "Create and activate a new virtual environment"
if test -e .git
append_to_file_if_not_exists ".git/info/exclude" ".venv"
end
+
+ # Tell Time Machine that it doesn't need to both backing up the
+ # virtualenv directory.
+ tmutil addexclusion .venv
end