项目作者: fredericseiler

项目描述 :
Jump for Windows
高级语言: Batchfile
项目地址: git://github.com/fredericseiler/jump.git
创建时间: 2016-02-27T17:37:21Z
项目社区:https://github.com/fredericseiler/jump

开源协议:MIT License

下载


Jump for Windows

Easily jump around the file system by manually adding marks.

It’s like the Oh My Zsh jump plugin, but for Windows.

Installation

Download Jump and extract it to a directory listed in your %PATH%#DOS.2C_OS.2F2.2C_and_Windows).

Alternatively, you can integrate it with your Cmder installation.

Usage

Mark the current path for recurrent use

  1. mark foo

Example :

  1. C:\Program Files>mark prog
  2. C:\Program Files>_

Jump to a marked path

  1. jump foo

Example :

  1. C:\Program Files>cd ..
  2. C:\>jump prog
  3. C:\Program Files>_

List all created marks

  1. marks

Example :

  1. C:\Program Files>marks
  2. prog -> C:\Program Files
  3. C:\Program Files>_

Remove a mark

  1. unmark foo

Example :

  1. C:\Program Files>unmark prog
  2. C:\Program Files>_

Keep a path for later user

  1. keep

Example :

  1. C:\Users\Username>keep

Jump back to the keeped path

  1. back

Example :

  1. C:\Users\Username>cd \
  2. C:\>back
  3. C:\Users\Username>_

Notes

If you mark a path without giving a name, the mark name will be the folder name :

  1. C:\bar>mark
  2. C:\bar>cd ..
  3. C:\>jump bar
  4. C:\bar>_

When a path is no more available, marks will tell you :

  1. C:\bar>mark foo
  2. C:\bar>cd ..
  3. C:\>rmdir C:\bar
  4. C:\>marks
  5. bar -> ?
  6. C:\>_

mark will ask for a confirmation if you’re trying to override any existing mark name :

  1. C:\>marks
  2. home -> C:\Users\Username
  3. C:\>mark home
  4. Mark C:\ as home? (y/n) _

Marks are stored in the directory %MARKPATH%, which defaults to %HOME%\.marks. If %HOME% is not set, it defaults to %USERPROFILE%\.marks.

Cmder Integration

Cmder Integration

Download Jump, extract all the .bat files to your Cmder\bin directory, and (optionally) add some useful Cmder aliases :

  • alias j=jump $*
  • alias m=mark $*
  • alias k=keep
  • alias b=back

And if you prefer the word “tag” instead of “mark” :

  • alias tag=mark $*
  • alias tags=marks
  • alias untag=unmark $*

PowerShell Edition

If you live in the future, you can also check out the PowerShell Edition by Florian Beisel.