3 ms·
up, a bash function to make walking up the directory tree easier. It allows walking up by passing in a --level commandline option: $ cd home/helpermethod/pr
by oweiler 13y ago
up, a bash function to make walking up the directory tree easier.
It allows walking up by passing in a --level commandline option:
$ cd home/helpermethod/projects/bash-specs
$ up --levels=2
$ pwd
/home/helpermethod
or by passing in a basename:
$ cd home/helpermethod/projects/bash-specs
$ up helpermethod
$ pwd
/home/helpermethod
It's written in pure Bash (no external dependencies) and features autocompletion for options and basenames.
It's more or less finished implementation-wise but lacks documentation and installation instructions.
https://github.com/helpermethod/up https://github.com/helpermethod/up