diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-08-27 13:12:30 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-08-27 13:12:30 -0500 |
commit | 973dfaf6058981914d13bbcdb4467f4c9aa13ffa (patch) | |
tree | ea8ac59f4165d4e92d152cf1daff93547804d30a | |
parent | 00831456496616cbf7696c7b34f341a4d6bcfb34 (diff) | |
download | zsh-master.tar.xz zsh-master.zip |
-rw-r--r-- | zscripts/dockeraliases.zsh | 19 | ||||
-rwxr-xr-x | zscripts/nicegit.zsh | 7 |
2 files changed, 26 insertions, 0 deletions
diff --git a/zscripts/dockeraliases.zsh b/zscripts/dockeraliases.zsh new file mode 100644 index 0000000..93a969c --- /dev/null +++ b/zscripts/dockeraliases.zsh @@ -0,0 +1,19 @@ +#!/usr/bin/env zsh + +alias \ + dc="docker compose" \ + dcl="docker compose logs -f" \ + dcb="docker compose build" \ + dcu="docker compose up" \ + dcd="docker compose down" \ + dcr="docker compose restart" \ + + +function dce() { + local shells=("/bin/bash" "/bin/sh") + local service=$1 + shift + for shell in ${shells[@]}; do + docker compose exec -it $service $shell $@ && return + done +} diff --git a/zscripts/nicegit.zsh b/zscripts/nicegit.zsh index 3538284..e191bd0 100755 --- a/zscripts/nicegit.zsh +++ b/zscripts/nicegit.zsh @@ -24,6 +24,13 @@ function gc() { git commit -m "$commit" } +function gcf() { + issue="$1" + [ -z "$issue" ] && return + shift + gc "$@\n\nfixes: $issue" +} + function __is_diff() { ! git diff --quiet HEAD $REF -- $DIR } |