0

Say for example I frequently log in to MySQL.

I want a default PowerShell profile which creates a new tab and does nothing.

But I want another one called "MySQL" which creates a new table and runs the mysql command.

This is a simplified example of course.

I've got as far as doing this in a batch file:

"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -noexit -noprofile -f "C:\Users\MyName\profiles\mysql_profile.ps1"

which does exactly what I want but in a new window. How can I make that same thing happen, with a new tab, by choosing a custom profile from the dropdown in PowerShell?

AmbroseChapel
  • 11,957
  • 7
  • 46
  • 68
  • I hope the linked duplicate answers your questions - it assumes that you're working with _Windows Terminal_. – mklement0 Mar 10 '23 at 02:28

0 Answers0