#!/usr/bin/env bash # Org Clock /opt/homebrew/bin/emacsclient --eval '(with-output-to-string (if (org-clocking-p) (princ (org-trim (org-clock-get-clock-string))) (princ "no clock")))' 2>/dev/null | awk '{print substr($0,2,length($0)-2)}' if [[ ${PIPESTATUS[0]} -eq 1 ]]; then echo "no emacs" fi echo "---" echo "Hello"