Skip to content
/ fo Public

Find & open a folder. Should work on all UNIX and UNIX-like systems (only tested on OS X).

Notifications You must be signed in to change notification settings

shrx/fo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

fo

fo, short for Find & Open, is a ksh script that finds all folders with a given name and, if a single folder is found, opens it.

Prerequisites, dependencies

You need to have ksh installed. The script doesn't work in bash because changes to variables are lost within a piped process. You can read a discussion about this here.

Usage

Run the script when you want to find and open a chosen folder, for example: fo foo bar will search for folders named "foo bar" (case insensitive). If a single folder is found, it will open. If more folders are found, their locations will be displayed instead. You may then enter the desired location's index number and that location will open. The script uses the locate command so recently created folders might not yet be in the database. I chose locate over find because it's much faster.

About

Find & open a folder. Should work on all UNIX and UNIX-like systems (only tested on OS X).

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages