Skip to main content

fish_functions/venv: only run tmutil on macOS

ID
f1f5dc7
date
2026-04-18 11:53:36+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
b27b233
message
fish_functions/venv: only run `tmutil` on macOS
changed files
1 file, 1 addition, 1 deletion

Changed files

fish_functions/venv.fish (2410) → fish_functions/venv.fish (2439)

diff --git a/fish_functions/venv.fish b/fish_functions/venv.fish
index d970d66..4555655 100644
--- a/fish_functions/venv.fish
+++ b/fish_functions/venv.fish
@@ -51,7 +51,7 @@ function venv --description "Create and activate a new virtual environment"
     #
     # Note: this is quite slow, so we only run it if we're in my home
     # directory -- it won't get backed up otherwise.
-    if string match -q "$HOME/*" "$PWD"
+    if string match -q "$HOME/*" "$PWD"; and [ $(uname) = "Darwin" ]
         tmutil addexclusion .venv
     end