Skip to content

Instantly share code, notes, and snippets.

@grafov
Created September 13, 2019 12:01
Show Gist options
  • Select an option

  • Save grafov/e1b4960d0a99bee5e149e68226b2dffc to your computer and use it in GitHub Desktop.

Select an option

Save grafov/e1b4960d0a99bee5e149e68226b2dffc to your computer and use it in GitHub Desktop.

Revisions

  1. grafov created this gist Sep 13, 2019.
    9 changes: 9 additions & 0 deletions fcd.fish
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # It uses fzf: https://github.com/junegunn/fzf
    function fcd
    cd ~
    if [ (count $argv) -ge 1 ]
    cd (dirname (fzf -q "$argv"))
    return
    end
    cd (dirname (fzf))
    end