xaizek / dit (License: GPLv3) (since 2018-12-07)
Command-line task keeper that remembers all old values and is meant to combine several orthogonal features to be rather flexible in managing items.
<root> / docs / 07-tips.md (3c8322a4289aea7622a4ef1dac0ecad42de60884) (954B) (mode 100644) [raw]
TIPS
====

Install and use bash completion
-------------------------------

Bash completion script is installed in standard location and should work
automatically.  Lots of things are completed in a predictable and helpful
manner, so be sure to use the completion as it helps a great deal.

Create aliases for frequently used projects
-------------------------------------------

Example:

```bash
alias d.d='dit .dit'
alias d.v='dit .vifm'
```

Using dot as a separated might be better for using `Ctrl-W` with shell
configuration that stops at a dot.

Creating an alias for `dit` itself won't hurt either:

```bash
alias d='dit'
```

Note that this can break completion if there are not workarounds like the one
mentioned in http://superuser.com/a/437508.  Another option is to define
completion manually for the alias like this:

```bash
complete -F _dit d
```

This won't work right away with `d.d` and `d.v` above as they take project name
argument.
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/dit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/dit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master