zsh tweaks

This commit is contained in:
Jonathan Hodgson 2024-02-22 21:20:53 +00:00
parent 89dbb2fccf
commit 131d693fd8
2 changed files with 2 additions and 20 deletions

View file

@ -75,7 +75,8 @@ else
export OPENAPI="$(realpath "$current/$(yq -r .openapi "$current/index.yaml")")"
fi
mkdir "$current/shell-logs" 2> /dev/null
/usr/bin/script -f "$current/shell-logs/$(date +"%d-%b-%y_%H-%M-%S")_shell.log"
date="$(date +"%d-%b-%y_%H-%M-%S")"
/usr/bin/script -f "$current/shell-logs/${date}_shell.log" -T "$current/shell-logs/${date}_shell.timing"
fi
else
type -p rem > /dev/null && rem -@