• Stars
    star
    160
  • Rank 234,703 (Top 5 %)
  • Language
    Shell
  • License
    MIT License
  • Created about 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Quickly navigate to a parent directory via tab-completion.

up

Stop typing ../../.. endlessly. Use tab completion instead! Using up allows you to change your current directory to a parent of the current directory where the parent is specified by name or index.

Install

Written in 100% shell script, up.sh registers the up function and some completion functions via your .bashrc or .zshrc file.

bash

curl --create-dirs -o ~/.config/up/up.sh https://raw.githubusercontent.com/shannonmoeller/up/master/up.sh
echo 'source ~/.config/up/up.sh' >> ~/.bashrc

zsh

curl --create-dirs -o ~/.config/up/up.sh https://raw.githubusercontent.com/shannonmoeller/up/master/up.sh
echo 'source ~/.config/up/up.sh' >> ~/.zshrc

fish

Written in 100% fish script, up.fish registers the up function and some completion functions via funcsave.

curl --create-dirs -o ~/.config/up/up.fish https://raw.githubusercontent.com/shannonmoeller/up/master/up.fish
source ~/.config/up/up.fish

Usage

$ up [dir|num|-]

    dir   full or partial name of any parent directory
    num   number of times you'd have to type `../`
    -     previous working directory

Examples

Up one level:

/home/chuck/foo/bar/baz/head/foot $ up
/home/chuck/foo/bar/baz/head $

Up multiple levels:

/home/chuck/foo/bar/baz/head/foot $ up 4
/home/chuck/foo $

Up by full name:

/home/chuck/foo/bar/baz/head/foot $ up bar
/home/chuck/foo/bar $

Up by partial name:

/home/chuck/foo/bar/baz/head/foot $ up ba
/home/chuck/foo/bar/baz $

Tab completion:

/home/chuck/foo/bar/baz/head/foot $ up <TAB>
bar/    baz/    chuck/  foo/    head/   home/

/home/chuck/foo/bar/baz/head/foot $ up h<TAB>
head/   home/

/home/chuck/foo/bar/baz/head/foot $ up ho<TAB>
/home/chuck/foo/bar/baz/head/foot $ up home/
/home $

MIT © Shannon Moeller

More Repositories

1

handlebars-layouts

Handlebars helpers which implement layout blocks similar to Jinja, Nunjucks (Swig), Pug (Jade), and Twig.
JavaScript
359
star
2

reset-css

An unmodified* copy of Eric Meyer's CSS reset. PostCSS, webpack, Sass, and Less friendly.
Less
333
star
3

gulp-hb

A sane Gulp plugin to compile Handlebars templates. Useful as a static site generator.
JavaScript
147
star
4

ygor

Task toolkit. For when `npm run` isn't enough and everything else is too much.
JavaScript
68
star
5

find-config

Like findup-sync, but 2-4x faster and supports XDG-style `.config/` directories.
JavaScript
40
star
6

handlebars-wax

The missing Handlebars API for data, partials, helpers, and decorators.
JavaScript
38
star
7

regx

Tagged-template-string regular-expression compiler.
JavaScript
34
star
8

front-end-logo

A community logo for front-end web development.
32
star
9

cli-columns

Columnated lists for the CLI. Unicode and ANSI safe.
JavaScript
31
star
10

require-glob

Requires multiple modules using glob patterns and combines them into a nested object.
JavaScript
21
star
11

mute

Politely tells stdout and stderr to shut the heck up for a moment.
JavaScript
11
star
12

handlebars-group-by

Handlebars helper which allows you to group lists by a property of each item.
JavaScript
10
star
13

spiff

Promise-aware file-system adapter and transmogrifier.
JavaScript
9
star
14

apply-html

It's `.innerHTML = ''` for the 21st century.
JavaScript
7
star
15

livery

CLI to reload browsers when files change with LiveReload.
JavaScript
7
star
16

todomvc-custom-elements

TodoMVC app built using Custom Elements and up-and-coming vanilla code in the browser and on the server.
JavaScript
7
star
17

bulk

Executes a command across multiple subdirectories.
Shell
7
star
18

deduce

Ridiculously easy JavaScript state containers with action methods.
JavaScript
7
star
19

pardy

Websocket-based trivia game.
JavaScript
6
star
20

whim

A protean Node.js toolset based on my mercurial preferences.
JavaScript
6
star
21

esprev

It's Babel without the setup pain. Like the original 6to5.
JavaScript
5
star
22

dotfiles

.files 📂
Shell
5
star
23

run-headless

The easiest way to run code in a headless browser.
JavaScript
5
star
24

rollup-preset-isomorphic

Everything you need to rollup isomorphic modules.
JavaScript
4
star
25

talks

Supporting material for my public presentations.
JavaScript
4
star
26

list-promise

Maximally-concurrent Promise-based array iteration.
JavaScript
4
star
27

gulp-promisify

Enables use of Promises or async/await keywords to control the flow of Gulp tasks.
JavaScript
4
star
28

vanilla-mvc-demo

Demo MVC app written in vanilla JS, with dependency injection, services, templates, and factories.
JavaScript
3
star
29

todomvc-vanilla

A TodoMVC example using minimal tooling and evergreen vanilla features.
JavaScript
3
star
30

babel-browserify-nyc-tape-zuul-isomorphic-demo

An isomorphic JavaScript development stack with tests and code coverage using babel, browserify, nyc, tape, and zuul.
JavaScript
3
star
31

code

code 🗃️
JavaScript
2
star
32

vanilla-zero

Modern web development with zero calories.
CSS
2
star
33

trivia

trivia 🧐
JavaScript
2
star
34

isomorphic-boilerplate

Isomorphic JS project boilerplate using babel, browserify, gulp, and tape.
JavaScript
1
star
35

async-map-stream

JavaScript
1
star
36

get-context

Chainable canvas context api wrapper.
JavaScript
1
star
37

vinyl-rw

A file-system aware vinyl file with first-class string support.
JavaScript
1
star
38

enceladus

Game Off 2020
JavaScript
1
star
39

isitchristmas

Is it Christmas?
HTML
1
star
40

infinite-improbability-drive

Infinite Improbability Drive
JavaScript
1
star
41

say-repl

A read-eval-print loop for the macOS `say` command.
JavaScript
1
star
42

advent-of-code

JavaScript
1
star