matusf/goto


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

  • Users starred: 12
  • Users forked: 1
  • Users watching: 12
  • Updated at: 2020-02-11 02:36:57

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 add 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/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.