I know you can simply put what you'd like to run:
func()
{
cd scripts
./excellent/script
}
but, what I'd like to do instead is have ./excellent/script
be put in
my commandline without being entered. This way when I run func
it puts
what I need there and waits until I'm ready; think presentations:
$ func
$ ./excellent/script
xclip
:echo "./excellent/script" | xclip
. – mcp Apr 22 '22 at 16:50