Skip to content
/ gotodir Public

add smart searching to `cd` - osx only - like NCD or WCD

Notifications You must be signed in to change notification settings

mazerj/gotodir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

gotodir

add smart searching to cd - osx only

Like the old Norton CD (ncd) utility for OSX or wcd.exe for linux -- used with alias below adds a pseudo-search path to cd:

  • if exact match is found, just cd there
  • otherwise generate a list of possible matches and use fzf (https://github.com/junegunn/fzf) to let user pick one to cd too.

To use, install gotodir.sh somewhere on your search path and add the following to your .bashrc_profile:

function gotodir () { gotodir.sh "$@" 2>/tmp/g.$$ && \
		builtin cd $(</tmp/g.$$) && \
		rm /tmp/g.$$ && pwd ; }
alias cd=gotodir

About

add smart searching to `cd` - osx only - like NCD or WCD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages