README.md in warp-dir-1.1.1 vs README.md in warp-dir-1.1.2

- old
+ new

@@ -1,7 +1,8 @@ # Warp Directory +[![Gem Version](https://badge.fury.io/rb/warp-dir.svg)](https://badge.fury.io/rb/warp-dir) [![Build Status](https://travis-ci.org/kigster/warp-dir.svg?branch=master)](https://travis-ci.org/kigster/warp-dir) [![Code Climate](https://codeclimate.com/github/kigster/warp-dir/badges/gpa.svg)](https://codeclimate.com/github/kigster/warp-dir) [![Test Coverage](https://codeclimate.com/github/kigster/warp-dir/badges/coverage.svg)](https://codeclimate.com/github/kigster/warp-dir/coverage) [![Issue Count](https://codeclimate.com/github/kigster/warp-dir/badges/issue_count.svg)](https://codeclimate.com/github/kigster/warp-dir) @@ -35,49 +36,70 @@ ## Installation Add this line to your application's Gemfile: ```ruby -gem 'warp-dir', '~> 1.0 ' +gem 'warp-dir' ``` And then execute: $ bundle Or install it yourself as: $ gem install warp-dir --no-ri --no-rdoc -After the installation, you will have the `warp-dir` command in the path, -which actually returns (as it's output) commands for the shell to -interprete. This is why you also need to install a tiny shell function -to wrap this gem's executable. +After the installation, you will have the `warp-dir` command in the path. You can use +this command almost like `wd` except it can not warp you to another folder due to +UNIX parent/child process restrictions. To do that you need to also install the shell +function wrapper in your `~/.bashrc` or similar file: -You can do it using several ways: +You can do like so (if you don't provide file, it will install in `~/.bashrc`, `~/.bash_profile` +or `~/.profile` whichever works first, – so use `--file` to override it if you need to). - $ warp-dir install [ --file <file> ] + $ warp-dir install [ --dotfile <file> ] -This command will ensure you have the wrapper installed in your ~/.bashrc or ~/.zshrc. -Without the `--file` option, it will install it in both if it finds them. With the -`--file` option, it will only add the shell function to the file specified. +And after that you need to restart your sheel, and then you should be able to get the +helpful message below by typing: -And after that you should be able to get the helpful message below by typing: - $ wd help If the above command returns a properly formatted help like the image below, your setup is now complete! ## Usage -The usage of the tool is a derived superset of the `ZSH`-based inspiration. +The usage of the tool is derived from `ZSH`-based inspiration. If it ain't broke, don't fix it! +I like how `wd` can be used with very short warp points, so it's so much less typing. I often name +my points `pu` so that I can jump there with `wd pu`. -![Image](doc/wd-help-800x710.png) +Unlike ZSH counterpart, this tool includes full command line parsing, so +you can (if you want to) use flags to achieve the same effect with more +characters to type, for example all below commands do the same thing. +```bash + wd pu + wd --warp --point pu + wd -m warp -p pu +``` + +You can run a comman in the target directory without leaving the current via +`wd ls pu`, but in this implementation you can also pass arguments to `ls` after +the `--` in argument list, for example, to run `ls -1` I would do `wd ls pu -- -1`. + +Here is a full command / help summary. + +![Image](doc/wd-help.png) + #### Notable Differences * instead of `wd add!` use `wd add -f <point>` (or --force) - * for now `wd clean` is not supported. + +These features will be added shortly: + + * for now `wd clean` is not supported + * for now history is not supported + * for now '-' is not supported ## Future Development I have so many cool ideas about where this can go, that I created a [dedicated page](ROADMAP.md) for the discussion of future features. Please head over