Skip to content

Commit

Permalink
Refactor D_COMMAND to CONFIGURATION and add example.gif
Browse files Browse the repository at this point in the history
  • Loading branch information
joowani committed May 3, 2016
1 parent e2e7f9a commit c48c22f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
23 changes: 9 additions & 14 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
Introduction
============

Do you have too many git repositories or vagrant machines to manage?
Does your work require you to switch between the same directories over
and over? Are you a lazy programmer who is always looking for ways to
type less? If you answered *yes* to any of these questions, then **dtags**
may be for you!

Features
========

**dtags** is a lightweight command line tool which lets you:

- Tag and un-tag directories
- Change directories quickly via tags
- Execute commands in multiple directories at once
- Execute commands in tagged directories at the same time
- Easily manage multiple git repositories, vagrant machines etc.

All commands come with tab-completion.

.. image:: example.gif

Installation
============

**Step 1**: Check requirements
**Step 1**: Check requirements:

- Python 2.7+ or 3.4+
- Recent version of `pip <https://pip.pypa.io>`__
Expand Down Expand Up @@ -52,6 +46,7 @@ Installation
::

Note for those who are upgrading from v1.x.x:
dtags v2 has config changes that are not backwards-compatible.
If you want to keep your tags, you need to run a migration script:
Expand Down Expand Up @@ -103,14 +98,14 @@ Search and manage tags with ``dtags``:

.. code:: bash
~$ dtags list # display the directories-to-tags mapping
~$ dtags list ~/app # display the tags and directories associated with ~/app
~$ dtags # display the directories-to-tags mapping
~$ dtags list ~ ~/vm # display the tags and directories associated with ~ and ~/app
~$ dtags list foo bar # display the tags and directories associated with 'foo' or 'bar'
~$ dtags reverse # display the tags-to-directories mapping
~$ dtags edit # edit tags and directories via editor like vim
~$ dtags clean # remove invalid or stale tags and directories
You can always use the ``--help`` option to find out more!
You can always use the ``--help`` option to find out more about each command!

Technical Notes
===============
Expand Down
2 changes: 1 addition & 1 deletion dtags/shells/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

SUPPORTED_SHELLS = {
'zsh': zsh.CONFIGURATION,
'bash': bash.D_COMMAND,
'bash': bash.CONFIGURATION,
'fish': fish.CONFIGURATION,
}
2 changes: 1 addition & 1 deletion dtags/shells/bash.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
D_COMMAND = """
CONFIGURATION = """
d() {{
declare _dtags_usage="{usage}"
declare _dtags_version="{version}"
Expand Down
Binary file added example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c48c22f

Please sign in to comment.