Skip to content
Change to a parent directory by its name based in @driv's upto
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
completions
functions
man/man1
test
.travis.yml
LICENSE
README.md

README.md

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
You can’t perform that action at this time.