<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Shell on yozy//NET</title>
    <link>https://yozy.net/tags/shell/</link>
    <description>Recent content in Shell on yozy//NET</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 31 Oct 2017 15:10:51 +0000</lastBuildDate>
    <atom:link href="https://yozy.net/tags/shell/feed.xml" rel="self" type="application/rss" />
    <item>
      <title>DTerm and Fish shell, together</title>
      <link>https://yozy.net/2017/10/dterm-and-fish-shell-together/</link>
      <pubDate>Tue, 31 Oct 2017 15:10:51 +0000</pubDate>
      <guid>https://yozy.net/2017/10/dterm-and-fish-shell-together/</guid>
      <description>&lt;p&gt;Fish shell does not seem to like to live within the DTerm terminal emulator. Sadly, DTerm seems in a state of abandon.&lt;/p&gt;&#xA;&lt;p&gt;What I do now is to force &lt;code&gt;bash&lt;/code&gt; as the shell used by DTerm. I do this by launching:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fish&#34; data-lang=&#34;fish&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nf&#34;&gt;env&lt;/span&gt; &lt;span class=&#34;nv&#34;&gt;SHELL&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;/bin/bash &lt;span class=&#34;nb&#34;&gt;open&lt;/span&gt; /Applications/DTerm.app&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Quick access to the last public url of a file in Dropbox</title>
      <link>https://yozy.net/2011/05/quick-access-to-the-last-public-url-of-a-file-in-dropbox/</link>
      <pubDate>Sun, 08 May 2011 08:00:14 +0000</pubDate>
      <guid>https://yozy.net/2011/05/quick-access-to-the-last-public-url-of-a-file-in-dropbox/</guid>
      <description>&lt;p&gt;I got bored to search for the url after uploading a file to the Dropbox&amp;rsquo;s&#xA;public folder. So I have hacked a quick shell script that takes the public url&#xA;of the latest file you uploaded to your public Dropbox folder and copies it to&#xA;the clipboard. I thought I could share:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;#!/bin/sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;cp&#34;&gt;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;DROPBOX&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$HOME&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;/Dropbox&amp;#34;&lt;/span&gt; dropbox puburl &lt;span class=&#34;s2&#34;&gt;&amp;#34;&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$DROPBOX&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;/Public/\`ls -1 -t &lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;$DROPBOX&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;/Public | head -n 1\`&amp;#34;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; xclip&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now, on OS X I have a folder action which does the same thing automatically&#xA;when a new file is uploaded. I will have to tinker with inotify and get it to&#xA;work on Linux as well.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
