Maybe there's already a recipe for how to do this, if so I'd love some direction.
My specific use case is that when sidestep runs, I need to update .gitconfig with proxy = socks5://localhost:9050, and on disconnect, disable the line.
My bash script actually comments or uncomments those lines, one in [http and one in [https], if anyone is interested, these are the commands in my .bash_profile:
alias gpoff="sed -i '' '/proxy/s/^/;/g' ~/.gitconfig"
alias gpon="sed -i '' '/proxy/s/^;//g' ~/.gitconfig"
Which simply changes these lines in .gitconfig from
Maybe there's already a recipe for how to do this, if so I'd love some direction.
My specific use case is that when sidestep runs, I need to update .gitconfig with
proxy = socks5://localhost:9050
, and on disconnect, disable the line.My bash script actually comments or uncomments those lines, one in
[http
and one in[https]
, if anyone is interested, these are the commands in my .bash_profile:Which simply changes these lines in .gitconfig from
to
Thanks!