Skip to content

JoeriHermans/warpdrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

Tag And Warp

Easily tag locations in deep space (directories) and warp (like the space drive) to them with a few keystrokes.

Installation

Installation is quite straightforward. Depending on the shell you are using (bash or zsh), add the following line to .bashrc or .zsh respectively.

source [path-to-repo]/src/.warpdrive

Usage

Basic usage example:

$ cd /var/log/
$ tag logdir
[INFO]: Tagged logdir as /var/log
$ cd ~  # go somewhere else
$ tags
Listing available tags and destinations:

log -> /var/log

$ warp log
[INFO]: Warping to /var/log.
$ pwd
/var/log

tag

Tags the current directory with an optional tagname. If no tagname is specified it will take the name of the current directory.

tag [tagname]

untag

Removes a tag from the taglisting.

untag [tagname]

This tagname is optional. If you are in a tagged directory it will automatically remove the directory from the list of tags.

warp

Jump to the tagged directory.

warp [tagname]

tags

Lists all tags.

tags

retag

Rename an existing tag in the taglisting.

retag [tagname] newname

Here, tagname is optional, but newname must be provided. If you are in a tagged directory, it will automatically retag that directory with the new tagname you specify.

Some examples:

retag mydir           # retags current tagged directory to `mydir`
retag thisdir mydir   # retags `thisdir` to `mydir`

Credits

Based on Jeroen Janssens' jumper.

About

Easily tag locations in deep space (directories) and warp (like the space drive) to them.

Resources

Stars

Watchers

Forks

Packages

No packages published