diff options
| author | 2024-03-08 22:38:15 +0100 | |
|---|---|---|
| committer | 2024-03-08 22:38:15 +0100 | |
| commit | cc74c7adb0a5fc4a3b90d3ea43424123f0acde44 (patch) | |
| tree | 01c5f4be74233b585da451a580fee237d1aba21c /dot_local/share/sh/docker | |
| parent | git: difftastic is optional, add local.config (diff) | |
sh: move from ~/.local/lib/sh to ~/.local/share/sh
It's debatable but ultimately it *is* arch-independent and ro.
Diffstat (limited to '')
| -rw-r--r-- | dot_local/share/sh/docker | 9 | ||||
| -rw-r--r-- | dot_local/share/sh/docker.fish | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/dot_local/share/sh/docker b/dot_local/share/sh/docker new file mode 100644 index 0000000..a7ccf0a --- /dev/null +++ b/dot_local/share/sh/docker @@ -0,0 +1,9 @@ +if . hascmd podman; then + alias docker=podman +elif . hascmd docker; then +else + return +fi + +alias dit='docker run -it --rm' +alias drun='dit -v "$(pwd)":/pwd:Z -w /pwd' diff --git a/dot_local/share/sh/docker.fish b/dot_local/share/sh/docker.fish new file mode 100644 index 0000000..e04437b --- /dev/null +++ b/dot_local/share/sh/docker.fish @@ -0,0 +1,9 @@ +if . hascmd podman + alias docker=podman +else if . hascmd docker +else + return +end + +alias dit='docker run -it --rm' +alias drun='dit -v (pwd):/pwd:Z -w /pwd' |
