cdup

Crates.iocdup
lib.rscdup
version0.5.0
sourcesrc
created_at2023-06-30 21:14:03.965442
updated_at2023-09-24 05:51:10.316837
descriptionAscend directories by count
homepagehttps://gitlab.com/radek-sprta/cdup
repositoryhttps://gitlab.com/radek-sprta/cdup
max_upload_size
id905003
size403,248
(radek-sprta)

documentation

README

cdup

Version Downloads License Coverage report

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

  • bash
  • fish
  • powershell
  • zsh

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 init

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/git/cdup
$ up
$ pwd
/home/rsprta/git
$ up rs
$ 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

Commit count: 40

cargo fmt