summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-08-27 13:12:30 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-08-27 13:12:30 -0500
commit973dfaf6058981914d13bbcdb4467f4c9aa13ffa (patch)
treeea8ac59f4165d4e92d152cf1daff93547804d30a
parent00831456496616cbf7696c7b34f341a4d6bcfb34 (diff)
downloadzsh-973dfaf6058981914d13bbcdb4467f4c9aa13ffa.tar.xz
zsh-973dfaf6058981914d13bbcdb4467f4c9aa13ffa.zip
add git commit fix function and dockeraliases for docker composeHEADmaster
-rw-r--r--zscripts/dockeraliases.zsh19
-rwxr-xr-xzscripts/nicegit.zsh7
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
}