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"