Im trying to create an alias that captures my terminal using script when im updating my packages.
scripttime() {
script --timing=${1-typescript}.time ${1-typescript}.log
}
alias update-n-log='scripttime ~/log/test/test.$(date +%d-%m-%YT%H-%M-%S); update_me'
This only runs the update_me command after the script recording is done. Can i automate script capture in an alias? I tried to google for it but the name script makes it hard to find anything relevant.