Replies: 1 comment
-
Are you using a If not, try that. I feel like that would be much easier to manipulate instead of having a bunch of Here's the relevant docs: https://sw.kovidgoyal.net/kitty/overview/#startup-sessions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @kovidgoyal. I would like to automatize some code and I would like when I execute my bash script on KITTY, split in 2 panes more.
I did that with the next code:
Then I wanted to complicated a little bit more and change a connection string of a file.
My connection string looks like this:
and I want to replace it for something like this:
I did this code with
sed
and works. If I put directly in the terminal (it's replacing the line)My problem is when I'm trying to use with Kitty, I'm sending all the comannds but I cannot make it works. Something like this:
kitty @ launch sh -c "sed -i 's/Server=\.\\\\SQLEXPRESS;Database=Testing;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True;/Data Source=localhost;Database=Testing123;User Id=sa;Password=MyPassword\/*-432;MultipleActiveResultSets=true;Encrypt=false;/g' ~/projects/Project1/appsettings.json && cd ~/projects/primereact && npm run dev"
Any help?
The final goal is execute the script and open in the same terminal splitted in 3 but in one of them, replace the connecting string.
I hope be clear, thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions