问题
I'm very new to development and I apologise if this is nooby or even not possible. There are similar questions to this but they all seem to be with other applications or plugins. Also because im new to this I do not know the correct terminology so forgive me there again.
At the moment I have this in a file called show_error_logs.sh
osascript <<END
tell application "Terminal"
do script "cd /vagrant" in window 1
do script "vagrant ssh" in window 1
do script "sudo su" in window 1
do script "cd /var/log/apache2/" in window 1
do script "tail -f error.log" in window 1
end tell
END
This runs when I type show-errors as I set this up in my alias.
At the moment it is working great, I just want to theme it a little. I would like the background color to be black and the main text white.
Also. if it is possible I would like specific text to be different color. For example PHP Fatal error I would like to have a background color of red
Thanks for the help, links and explanations will be greatly appreciated as I do not just wanna copy and paste and not learn anything.
来源:https://stackoverflow.com/questions/51041061/change-terminal-window-background-color-and-text