Giter VIP home page Giter VIP logo

waypoint's Introduction

Sometimes I'd like to mark a directory in the shell, and skip back to it quickly later, like using marks in vim. Waypoint is designed to do just that.

In an Unix environment, there's no real way to change a parent process's working directory, aside from some really terrible thing I spotted on StackOverflow. I could think of 3 options:

  1. Spawn new shells, and try and keep the number of them under control.
  2. Write a terrible shell script that uses some voodoo magic to parse ini files and cd to the appropriate directory, and then source that file.
  3. Write a less-terrible Python script that writes a file that is then sourced.

I chose option 3.

This is a terribly hacky solution - no, seriously, this is terrible. Don't use it if you're not aware of the Bad Things that can happen and are willing to accept those risks.

If you really, really want to try this, take a look at the instructions in waypoint.sh.

pushd and popd

Shortly after starting this, raylu brought pushd and popd to my attention. They're pretty cool, I must say, but popd doesn't seem to have the kind of name-specified path-popping that I want. That said, if you just want to build a stack of paths and rewind back down, go use those instead of waypoint.

Bashmarks

Huy Nguyen made a similar system called Bashmarks. It looks better off than mine.

waypoint's People

Contributors

xiongchiamiov avatar

Stargazers

Frédéric Van der Essen avatar Jordan Howlett avatar  avatar

Watchers

 avatar  avatar

waypoint's Issues

Invalid section name: default

It seems that 'default' isn't a valid name for a section, at least when adding it to a file. If it's already there, everything functions just fine. I assume this has to do with confusion over default/DEFAULT.

So, either we can prepopulate the config file with a 'default' section, or change the name.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.