Giter Club home page Giter Club logo

goto's Introduction

goto

A simple shell function to manage and navigate to custom directory mappings.

Installation

  1. Clone the repository to your local machine:
git clone https://github.com/luisya22/goto.git
  1. Source the goto.sh script in your .bashrc file:
echo "source /path/to/goto/goto.sh" >> ~/.bashrc
# Replace /path/to/goto with the actual absolute path where the goto repository is cloned 
# For example, if it is at home: ~/goto/goto.sh
  1. Reload your .bashrc file:
source ~/.bashrc

Usage:

  • Add a new mapping: goto add <entry_name> <folder_path>
    • You may also use $(pwd) if you are currently in the folder you want to add: goto add <entry_name> $(pwd)
  • Remove a mapping: goto remove <entry_name>
  • Update a mapping: goto update <entry_name> <new_path>
  • List all mappings: goto list
  • Navigate to a mapping: goto <entry_name>

Autocompletion

The goto function supports autocompletion for the names of your custom mappings.

Example

goto add projects ~/Documents/Projects/MyFavoriteProject/Inside/SuperInside
goto projects

This will navigate to ~/Documents/Projects/MyFavoriteProject/Inside/SuperInside.

goto's People

Contributors

luisya22 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.