From 5d3900f131fc580bab2a02e77697cec2d6b56f62 Mon Sep 17 00:00:00 2001 From: Yannick7777 <87943421+Yannick7777@users.noreply.github.com> Date: Wed, 12 Feb 2025 09:13:48 +0100 Subject: [PATCH] .zsh set UID and GID env vars in docker compose aliases --- .zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index b0ed558..d688e87 100644 --- a/.zshrc +++ b/.zshrc @@ -109,8 +109,8 @@ fastfetch --config examples/16 # export XDG_CURRENT_DESKTOP=sway alias ledger-shell="ledger-agent ~/.ssh/ledger.conf -s -v" alias dcd="docker compose down" -alias dcu="docker compose up" -alias dcud="docker compose up -d" +alias dcu='UID="$(id -u)" GID="$(id -g)" docker compose up' +alias dcud='UID="$(id -u)" GID="$(id -g)" docker compose up -d' alias needssh="git remote set-url origin \$(git remote get-url origin | sed -e 's|https://github.com/|git@github.com:|' -e 's|/$||' -e 's|\.git$||')" # Created by `pipx` on 2024-11-22 13:27:16