Compare commits
2
Commits
fd1cf0dbe7
...
1048c0f38f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1048c0f38f | ||
|
|
1922a414ac |
No files matched your search
-16
@@ -1,16 +0,0 @@
|
||||
# Omarchy environment (OMARCHY_PATH + PATH), needed even for non-interactive shells
|
||||
[[ -r /usr/share/omarchy/default/bash/env-bootstrap ]] && source /usr/share/omarchy/default/bash/env-bootstrap
|
||||
|
||||
# If not running interactively, don't do anything else (leave this above the rc source)
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# All the default Omarchy aliases and functions
|
||||
# (don't mess with these directly, just overwrite them here!)
|
||||
source "$OMARCHY_PATH/default/bash/rc"
|
||||
|
||||
# Add your own exports, aliases, and functions here.
|
||||
#
|
||||
# Make an alias for invoking commands you use constantly
|
||||
# alias p='python'
|
||||
|
||||
alias docker='sudo docker'
|
||||
@@ -32,4 +32,6 @@ auto_prune = false
|
||||
[settings.python]
|
||||
uv_venv_auto = true
|
||||
|
||||
[env]
|
||||
_.path = "~/.local/bin"
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
if omarchy-sudo-docker; then
|
||||
exec pkexec --keep-cwd env \
|
||||
DOCKER_CONFIG="$HOME/.docker" \
|
||||
PATH="/usr/local/bin:/usr/bin:$HOME/.local/bin" \
|
||||
XDG_RUNTIME_DIR="/run/user/$(id -u)" \
|
||||
/usr/bin/docker "$@"
|
||||
else
|
||||
exec /usr/bin/docker "$@"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user