jacobis / gotodir

Simple command line app for fast directory switching ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoToDir 🏃

A command line app for fast directory switching ⚡️

GoToDir gif

Installation

Install gotodir package

$ npm install -g gotodir
# or
$ yarn global add gotodir

❗ Important! Create an alias

Add this line to .bashrc or .zshrc.

alias to=". gotodir"

Restart your shell.

Without this alias you have to type . gotodir each time you use this app.

Setup shell autocompletion

$ to --setup

Restart your shell.

Usage

Adding current folder to gotodir

$ cd /sample/long/and/complicated/path
$ to add project1
#=> Added project1 with path /sample/long/and/complicated/path

# or

$ to add project1 /sample/long/and/complicated/path
#=> Added project1 with path /sample/long/and/complicated/path

Changing current folder

$ pwd
#=> /home/user
$ to project1
$ pwd
#=> /sample/long/and/complicated/path

Showing all added folders

to

Removing folder from gotodir

to rm project1
#=> Folder "project1" removed.

About

Simple command line app for fast directory switching ⚡️


Languages

Language:JavaScript 95.2%Language:Shell 4.8%