Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/joerihermans/warpdrive
- Owner: JoeriHermans
- Created: 2016-07-22T08:06:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T10:35:01.000Z (over 4 years ago)
- Last Synced: 2024-10-28T21:49:03.640Z (about 2 months ago)
- Size: 10.7 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.