cmc/dotfiles

Using GNU Stow to manage my dotfiles.

clone: git clone https://gitbay.org/cmc/dotfiles.git

b62bbe4ca06a77dd693b3bbc985f42f2c3c22edc

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2026-02-09T21:31:47Z

ensure /tank is only mounted on linux
 zsh/.zshrc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/zsh/.zshrc b/zsh/.zshrc
index 3622ddf..efa587b 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -29,8 +29,10 @@ export PATH="$BREW_PREFIX:$PATH"
 export GPG_TTY=$(tty)
 
 # borgbackup
-export BORG_CACHE_DIR="/tank/borg-cache"
-mkdir -p /tank/borg-cache
+if [[ "$(uname)" == "Linux" ]]; then
+  export BORG_CACHE_DIR="/tank/borg-cache"
+  mkdir -p /tank/borg-cache
+fi
 
 # NVM Configuration
 export NVM_DIR="$HOME/.nvm"