<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Andrew Channels Dexter Pinion (Posts about fish)</title><link>https://halfcooked.com/</link><description></description><atom:link href="https://halfcooked.com/categories/fish.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Mon, 19 Feb 2024 21:51:00 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Teaching an old dog to Fish</title><link>https://halfcooked.com/blog/2014/10/10/teaching-an-old-dog-to-fish/</link><dc:creator>Andrew J Todd esq.</dc:creator><description>&lt;p&gt;Inspired by the recent furore around &lt;a href="https://en.wikipedia.org/wiki/Shellshock_%28software_bug%29"&gt;Shellshock&lt;/a&gt;
I decided that it was time to try an alternative to &lt;a href="https://www.gnu.org/software/bash/"&gt;bash&lt;/a&gt;
By the very grown up process of shutting my eyes and poking my finger at the results of a &lt;a href="http://duckduckgo.com/"&gt;search&lt;/a&gt;
for "shell" I ended up at &lt;a href="http://fishshell.com/"&gt;fish shell&lt;/a&gt;, described by the project as "a command line shell for the 90s". I'm presuming that this means the 1990s and is not a minimum age requirement.&lt;/p&gt;
&lt;p&gt;I'm quite enjoying it so far but the missing piece for me was something equivalent to the very useful &lt;a href="http://virtualenvwrapper.readthedocs.org/en/latest/"&gt;virtualenvwrapper&lt;/a&gt;. 
Luckily for me someone else has already had this problem and wrote &lt;a href="https://github.com/adambrenecki/virtualfish/"&gt;virtual fish&lt;/a&gt;.
For which many thanks. I did have a little trouble with installation and configuration. I'm sure that this was entirely my own fault but as a reminder for me and anyone else who stumbles on this here is what I did.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Downloaded &lt;code&gt;virtual.fish&lt;/code&gt; from the &lt;a href="https://github.com/adambrenecki/virtualfish/releases"&gt;Github repo&lt;/a&gt; to &lt;code&gt;~/bin&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Because I don't use &lt;code&gt;~/.virtualenvs&lt;/code&gt; to store my virtual environments I added &lt;code&gt;set -x VIRTUALFISH_HOME ~/Work/envs/&lt;/code&gt; to my &lt;code&gt;.config/fish/fish.config&lt;/code&gt; file&lt;/li&gt;
&lt;li&gt;Included the currently active virtual environment name in my prompt by following the &lt;a href="http://virtualfish.readthedocs.org/en/latest/install.html#customizing-your-fish-prompt"&gt;instructions&lt;/a&gt;. A trap for young players is to make sure that you do &lt;code&gt;funcsave fish_prompt&lt;/code&gt; as instructed. I missed this out the first couple of times and kept wondering why my prompt was wrong.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Thanks for the comments. bronsen - yes I do source &lt;code&gt;virtual.fish&lt;/code&gt; in my &lt;code&gt;config.fish&lt;/code&gt;. Or at least I did until jl pointed me at &lt;a href="https://github.com/berdario/pew"&gt;Pew&lt;/a&gt;. Now I've switched to that from virtualenvwrapper and virtual.fish and I must say that it works like a dream. Thanks both for taking the time to leave a comment.&lt;/p&gt;</description><category>fish</category><guid>https://halfcooked.com/blog/2014/10/10/teaching-an-old-dog-to-fish/</guid><pubDate>Fri, 10 Oct 2014 14:38:47 GMT</pubDate></item></channel></rss>