f

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 15 Imported by: 0

README

f

fast access to directories and scripts.

Currently tested on unix-like systems (linux, darwin)

Install

The two primary installation options are with go install or by downloading from the releases page. For shortcuts that you want to be eval'd by the parent shell (such as cd $DIR), you also need to add a small wrapper to your .bashrc or the config file of your given shell.

1a: Via go install:

This will typically install into your $GOBIN directory.

go install github.com/amattn/f

1b: Via releases page:

2: Shell wrapper

For bash, add the following lines to your bash profile:

ff() {
  if [ ! -n "$1" ]; then
    # just print the menu
    f
  else
    # pass args to f
    eval `f --print "$@"`
  fi  
} 
TODO
  • pass extra args along
  • bash tab completion

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL