chezmoi/bin/executable_record.sh

15 lines
306 B
Bash
Raw Normal View History

#!/bin/bash
# Get the current timestamp
timestamp=$(date +%Y%m%d%H%M%S)
# Construct the filename
filename="recording_$timestamp.cast"
mkdir -p ~/Documents/arecordings
# Start the recording
asciinema rec ~/Documents/arecordings/${filename}
echo "Recording saved to ~/Documents/arecordings/${filename}"