Skip to content
Navigate long command lines using a minimalistic char-based decision tree.
Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
goto.sh

README.md

Goto

Navigate long command lines using a minimalistic char-based decision tree.

git recall

Introduction

Goto is a program for jumping between command lines characters using a simple char-based decision tree. This is particulary usefull when you have to deal with long command line, or to avoid the frustration caused by latency when you want to move your cursor while being on remote system.

Installation

Clone this project (or just copy goto.sh content somewhere)

$ git clone https://github.com/Fakerr/goto.git

then add the following to your .bashrc (or .profile on Mac):

if [[ -s "$HOME/path/to/goto.sh" ]]; then
	source "$HOME/path/to/goto.sh"
fi

Usage

Key bindings:
  • Ctrl-k : enter goto mode from where you can select the character you want to jump to.
  • ESC : exit goto mode.

If you want to change the default key to enter goto mode, you can set to GOTO_KEY your desired key and then source your .bashrc or .profile.

Requirements

  • OS: Linux or OSX
  • Bash 4.3 or more

Contribution

Pull requests are welcome, along with any feedback or ideas.

Prior Art

License

Copyright Walid Berrahal. Licensed under MIT.

You can’t perform that action at this time.