~proycon/asciinema-rec_script

a4ab88bfd8ea8c1ffe030e5424f8c9784de0b43b — Maarten van Gompel 1 year, 28 days ago 65e54e9 main
no begin/end recording message
1 files changed, 1 insertions(+), 13 deletions(-)

M bin/asciinema-rec_script
M bin/asciinema-rec_script => bin/asciinema-rec_script +1 -13
@@ 14,8 14,6 @@ REC_ARGS="${RECORD_ARGS:---idle-time-limit 1 --overwrite}"
export PROMPT="${PROMPT:-"\$ "}"
export COMMENT="${COMMENT:-"💬 "}"
export ECHO="${ECHO:-"💬 "}"
export BEGIN_RECORDING="${BEGIN_RECORDING:-"🎥 Begin recording - "}"
export END_RECORDING="${END_RECORDING:-"🎬 End recording - "}"
#export VERSION="${VERSION:-$(cat "${BASH_SOURCE[0]%/*}/../version.txt")}"




@@ 89,14 87,6 @@ build_augmented_script() { local script="$1"
    esac
  }

  begin_recording() {
    echo "${BEGIN_RECORDING}${1##*/}"
  }

  end_recording() {
    echo "${END_RECORDING}${1##*/}"
    echo "(Powered by https://github.com/zechris/asciinema-rec_script)"
  }

  countdown() {
    counter() {


@@ 141,11 131,9 @@ LINE
  echo "export CAT='${CAT:-$(syntax_highlighter)}'"
  echo "export MARKDOWN='${MARKDOWN:-$(markdown_highlighter)}'"
  # shellcheck disable=SC2034
  typeset -f comment execute begin_recording end_recording countdown
  typeset -f comment execute  countdown

  echo begin_recording "'""$script""'"
  transform_lines < "$script"
  echo end_recording "'""$script""'"
}

syntax_highlighter() {