Giter Club home page Giter Club logo

pocket's Introduction

Pocket

You are deeply focused to build the next billion dollar app. Suddenly your coworker pokes you and asks for help – the backend is down and every second counts as lost customers.

"No worries, we just need to revert back to previous version" you answer confidently knowing that you've done that a few times before in test environment.

You open the terminal, and realize you've forgotten what the exact command for reverting previous version was. You hit ´ctrl R´, but no luck. It's been too long since you needed that command for the last time. You feel the cold sweat on your forehead. "There has to be a better way" you think before you dive into the pile of unstructured and outdated documentation.

Image source: Bing Image Creator

There is a better way.

What does it do?

  • Removes the cognitive strain of remembering commands you rarely need
  • Makes it very easy to write down new commands and retrieve them right where you need them – in your terminal!
  • Really lightweight, just a few lines of bash code (You would probably do well by simply memoizing the the few bash commands this invokes under the hood. But hey, at least implementing this script was a fun learning experience for me 🤷)
$ pocket add 'git rebase main --update-refs'
$ pocket add 'adb exec-out screencap -p > screen.png'
$ pocket find adb
adb exec-out screencap -p > screen.png

Install

Clone the repo and add the /bin folder to your path. E.g. if you're using Mac and Zsh, you might want to run the following commands:

# Clone the repository.
git clone [email protected]:EskelinenAntti/pocket.git

# Enter into the cloned repo.
cd pocket/

# Add pocket to PATH. Warning: You need to be in the correct folder 
# and using Zsh for this to work!
echo PATH=\$PATH:$PWD/bin >> ~/.zshrc

# Refresh the terminal session.
source ~/.zshrc

# start using pocket
pocket --help

pocket's People

Contributors

eskelinenantti avatar

Watchers

 avatar

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.