Skip to content

Latest commit

 

History

History
94 lines (64 loc) · 1.61 KB

README.md

File metadata and controls

94 lines (64 loc) · 1.61 KB

goto

A fish shell utility to quickly navigate to aliased directories supporting tab-completion

goto is a port of goto to fish shell.

demo

Installation

Via fisher

fisher install matusf/goto

Manually

Simply copy the goto.fish to your fish/functions directory. (Typically ~/.config/fish/functions) or run:

curl --create-dirs -o ~/.config/fish/functions/goto.fish https://raw.githubusercontent.com/matusf/goto/master/functions/goto.fish

Usage

Go to an aliased directory

$ goto <alias>

Register an alias

$ goto -r <alias> <directory>
$ goto --register <alias> <directory>

Unregister an alias

$ goto -u <alias>
$ goto --unregister <alias>

List aliases

$ goto -l
$ goto --list

Cleanup non existent directory aliases

$ goto -c
$ goto --cleanup

Expand an alias

$ goto -x <alias>
$ goto --expand <alias>

Print goto version

$ goto -v
$ goto --version

Print a help message

$ goto -h
$ goto --help

Features

Configuration

You can configure the location of goto database by setting an environment variable GOTO_DB to a path to a file where you would like to store aliases.