Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 1.74 KB

README.md

File metadata and controls

81 lines (53 loc) · 1.74 KB

🧗 up

ci 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

✨ Features

  • ⚡ Lightning fast
  • ⌨️ Shell completion for parent directory names
  • 🐚 Works with Bash and Zsh

🛠️ Installation

🐚 Git & Bash

Clone up's Git repository.

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

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

. "$HOME/.up/up"

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

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

🐚 Git & Zsh

Clone up's Git repository.

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

Add the following to your .zshrc to install up.

. "$HOME/.up/up"

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

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

🔍 Usage

Get a list of parent directory names

$ up <tab>
.up         /           Users       completion  weilero

Jump to a parent directory by name

$ up weilero

Jump to a parent directory by prefix

$ up we<tab>