Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joerihermans/warpdrive

Easily tag locations in deep space (directories) and warp (like the space drive) to them.
https://github.com/joerihermans/warpdrive

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:

```bash
$ 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.

```bash
tag [tagname]
```

### untag

Removes a tag from the taglisting.

```bash
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.

```bash
warp [tagname]
```

### tags

Lists all tags.

```bash
tags
```

### retag

Rename an existing tag in the taglisting.

```bash
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:

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

## Credits

Based on Jeroen Janssens' jumper.