An open API service indexing awesome lists of open source software.

https://github.com/helpermethod/up

Climbing the directory tree at the speed of light.
https://github.com/helpermethod/up

bash bash-completion directory-traversal zsh

Last synced: 2 months ago
JSON representation

Climbing the directory tree at the speed of light.

Awesome Lists containing this project

README

        

# :climbing: up

[![ci](https://github.com/helpermethod/up/actions/workflows/ci.yml/badge.svg)](https://github.com/helpermethod/up/actions/workflows/ci.yml)
[![license](https://badgen.net/badge/license/MIT/blue)](https://github.com/helpermethod/up/blob/main/LICENSE)

> Tired of repeatedly typing `cd ..` to walk up the directory tree? Fed up with defining aliases to jump to the first, second or nth parent directory? `up` to the rescue!

`up` is a shell function for jumping to a parent directory by name.

up.gif

## :sparkles: Features

* :zap: Lightning fast
* :keyboard: Shell completion for parent directory names
* :shell: Works with Bash and Zsh

## :hammer_and_wrench: Installation

### :shell: Git & Bash

Clone `up`'s Git repository.

```sh
$ git clone https://github.com/helpermethod/up ~/.up
```

Add the following to your `.bashrc` (Linux) or `.bash_profile` (macOS) to install `up`.

```sh
. "$HOME/.up/up"
```

Add the following to your `.bashrc` (Linux) or `.bash_profile` (macOS) to enable `up`'s shell completion.

```sh
. "$HOME/.up/completion/bash/up"
```

### :shell: Git & Zsh

Clone `up`'s Git repository.

```sh
$ git clone https://github.com/helpermethod/up ~/.up
```

Add the following to your `.zshrc` to install `up`.

```sh
. "$HOME/.up/up"
```

Add the following to your `.zshrc` to enable `up`'s shell completion.

```sh
autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
. "$HOME/.up/completion/bash/up"
```

## :mag: Usage

### Get a list of parent directory names

```sh
$ up
.up / Users completion weilero
```

### Jump to a parent directory by name

```sh
$ up weilero
```

### Jump to a parent directory by prefix

```sh
$ up we
```