cdup 0.3.0

Ascend directories by count
Documentation

cdup

Version Downloads License

cdup is a CLI utility to ascend directories by count. It currently ships with integrations for the following shells:

  • bash
  • fish

Installation

You can install cdup by building it with cargo. Run the following command:

cargo install --target-dir ~/.local cdup

This will create a binary in ~/.local/bin/cdup.

Usage

To get the run shell-specific instructions, use the following command:

cdup shell

That will print instructions on how to add the up integration function to your shell.

Afterward, you can call up with a number to ascend the desired number of directories. Here's an example:

$ pwd
/home/rsprta/cdup
$ up 1
$ pwd
/home/rsprta
$ up 2
$ pwd
/

Acknowledgements

  • cdup uses the excellent clap library to create the command-line interface.
  • The terminal animation was created with Asciinema and svg-term-cli.

License

GNU General Public License v3.0