Skip to content

woongy/up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

up

Requirement

  • Ruby (up is a simple Ruby one-liner)

Install

wget -O /usr/bin/up https://raw.github.com/woongy/up/master/up

and then add alias up="source /usr/bin/up" to .bashrc and/or .bash_profile

Usage

  • Jump to the nearest parent directory

      /foo/bar/baz/qux $ up foo
      /foo $
    
  • Case-insensitive match by default

      /fOo/bar/baz/qux $ up FoO
      /foo $
    
  • Match by first characters

      /foo/bar/baz/qux $ up fo
      /foo $
    
  • up with no arguments works like cd ..

      /foo/bar/baz/qux $ up
      /foo/bar/baz $
    

Known Issues

  • up to / does not work (but we already have cd / for that)

      /foo $ up /     # error
      /foo $ up       # stays at /foo
    

About

Replace 'cd ../../../../../' with a single command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published