Markcial / upto

Change to a parent directory by its name based in @driv's upto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

upto

Gets you to a parent folder, heavily inspired by the plugin upto made by driv.

Install

With fisherman

fisher add markcial/upto

Usage

Inside /home/username/Projects/project_a/src/Core

$ upto Projects
$ pwd
/home/username/Projects

It works on directories with non ASCII characters if the charset used is UTF-8.

Inside /home/weiß/projekten/src/Core

$ upto weiß
$ pwd
/home/weiß

You can use it inside directories with spaces too.

Inside /home/User/My Documents/xls/2016/essays

$ upto "My Documents"
$ pwd
/home/User/My Documents

About

Change to a parent directory by its name based in @driv's upto

License:MIT License


Languages

Language:Shell 100.0%