From 5a4b83aaa1af4e33107db59b82c97514bc2dee66 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 4 Jan 2026 12:09:35 +0100 Subject: [PATCH] feat(custom-commands): add ccb to copy current branch, make ccd an alias --- omz-custom/custom_commands.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/omz-custom/custom_commands.sh b/omz-custom/custom_commands.sh index 840ae20..019be9d 100644 --- a/omz-custom/custom_commands.sh +++ b/omz-custom/custom_commands.sh @@ -123,9 +123,8 @@ function cmple() { ./$result } -function ccd() { - printf "%q" "$(pwd)" | pbcopy -} +alias ccd="printf '%q' \"$(pwd)\" | pbcopy" +alias ccb="printf '%q' \"$(git rev-parse --abbrev-ref HEAD)\" | pbcopy" alias t="tmux"