Show HN: tere – A Faster Alternative to cd+ls
Congrats for getting this out!<p>> I also wanted an excuse to learn<p>This is the best reason ever, and not just for you: seeing your GIF I thought "could I achieve that with fzf?". Turns out, yes I can:<p><pre><code>    function fcd() {
      local dir;
    
      while true; do
        # exit with ^D
        dir="$(ls -a1p | grep '/$' | grep -v '^./$' | fzf --height 40% --reverse --no-multi --preview 'pwd' --preview-window=up,1,border-none --no-info)"
        if [[ -z "${dir}" ]]; then
          break
        else
          cd "${dir}"
        fi
      done
    }
</code></pre>
Certainly not the best code (and definitely not a jab at your implementation!) but, hey, it was purely for the heck of it.<p>Lately I've been trying to find the joy in programming again, these kind of fun little challenges help a lot, so thanks for sharing, enthusiasm and creativity is contaminating :)