.zsh set UID and GID env vars in docker compose aliases

This commit is contained in:
Yannick7777 2025-02-12 09:13:48 +01:00
parent 4338a16efc
commit 5d3900f131

4
.zshrc
View file

@ -109,8 +109,8 @@ fastfetch --config examples/16
# export XDG_CURRENT_DESKTOP=sway # export XDG_CURRENT_DESKTOP=sway
alias ledger-shell="ledger-agent ~/.ssh/ledger.conf -s -v" alias ledger-shell="ledger-agent ~/.ssh/ledger.conf -s -v"
alias dcd="docker compose down" alias dcd="docker compose down"
alias dcu="docker compose up" alias dcu='UID="$(id -u)" GID="$(id -g)" docker compose up'
alias dcud="docker compose up -d" 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$||')" 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 # Created by `pipx` on 2024-11-22 13:27:16