<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>IT on Patrik Trefil</title><link>https://www.patriktrefil.com/tags/it/</link><description>Recent content in IT on Patrik Trefil</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Fri, 12 Apr 2024 13:56:39 +0100</lastBuildDate><atom:link href="https://www.patriktrefil.com/tags/it/index.xml" rel="self" type="application/rss+xml"/><item><title>WSL SSH agent and Git</title><link>https://www.patriktrefil.com/posts/wsl_ssh_agent_and_git/</link><pubDate>Fri, 12 Apr 2024 13:56:39 +0100</pubDate><guid>https://www.patriktrefil.com/posts/wsl_ssh_agent_and_git/</guid><description>&lt;p&gt;This article describes how you can say goodbye to the hassle of copying and&#10;pasting your SSH passphrase every time you want to connect to a machine via ssh,&#10;push/pull from a git repository via ssh or sign a commit/tag/push via ssh&#10;regardless of your shell being Powershell, Bash or anything else.&lt;/p&gt;&#10;&lt;p&gt;This is useful if you need to be able to use ssh/git fully in Windows and WSL.&#10;If you do all your work only in one of these environments, you probably do not&#10;need this.&lt;/p&gt;</description></item><item><title>WSL Bash environment</title><link>https://www.patriktrefil.com/posts/wsl_bash_env/</link><pubDate>Wed, 12 Jan 2022 10:56:39 +0100</pubDate><guid>https://www.patriktrefil.com/posts/wsl_bash_env/</guid><description>&lt;p&gt;This article might clear up the confusion about the environment Bash&#10;shell runs in under Windows.&lt;/p&gt;&#10;&lt;p&gt;When you start the bash shell using the &lt;code&gt;bash&lt;/code&gt; command, files such as&#10;&lt;code&gt;~/.bashrc&lt;/code&gt;, &lt;code&gt;~/.profile&lt;/code&gt;, etc. are loaded. This is expected behavior.&lt;/p&gt;&#10;&lt;p&gt;Now the counter-intuitive part. When you run a bash script using the &lt;code&gt;bash&lt;/code&gt; command from Powershell,&#10;the script runs as a &lt;em&gt;non-interactive&lt;/em&gt; bash script, which means, that the configuration files&#10;are not loaded.&lt;/p&gt;</description></item></channel></rss>