GithubHelp home page GithubHelp logo

optionalg / bashpast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ivanmisic/bashpast

0.0 3.0 0.0 14 KB

Bashpast bookmarks your commands for easier repeated invocation

License: GNU General Public License v3.0

Makefile 26.92% Shell 73.08%

bashpast's Introduction

Bashpast

Bashpast bookmarks your commands for easier repeated invocation


Install

  1. git clone [email protected]:ivanmisic/bashpast.git
  2. cd bashpast && make
  3. append in ~/.bashrc file the following line source ~/.local/bin/bashpast.sh

Shell Commands

bp s <bookmark_name> - Saves the last command in history as "bookmark_name"
bp e <bookmark_name> - Execute the command associated with "bookmark_name"
bp d <bookmark_name> - Deletes the bookmark with the "bookmark_name"
bp l                 - Lists all available bookmarks

Example Usage

Save a bookmark

$ echo "I will bookmark this command"
$ I will bookmark this command
$ bp s echo

Execute a bookmarked command

$ bp e echo
$ I will bookmark this command

List all bookmarks

$ bp l
$ echo          echo "I will bookmark this command"

bashpast's People

Contributors

ivanmisic avatar

Watchers

 avatar James Cloos avatar  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.