Giter VIP home page Giter VIP logo

zsh-hist's Introduction

zsh-hist

Added Undo functionality

On any new command line, you can now press Undo to pop the last command from your history into the line editor, letting you correct any mistakes you made before running it back. Afterwards, the old command will no longer be found.

(Check with bindkey to see which keyboard shortcut is bound to undo. zsh-hist does not change that.)

Command line syntax

Usage:
  hist [options] <action> [selection]

Options (can be combined):
  -i  interactive: ask for confirmation
  -s  silent:      do not print anything
  -v  verbose:     print all the things

Actions (required; mutually exclusive):
  d  delete: remove from history
  e  edit:   remove from history, then modify & append as new
  f  fix:    remove from history, then load into buffer
  l  list:   look, but do not touch
  r  reload: re-initialize entire history from file
  u  undo:   roll back to before last change in same session

Selection (required for some actions; mutually exclusive):
  empty             last event
  positive integer  index from beginning of history
  negative integer  offset from end of history
  simple string     prefix to match (selects one)
  glob expression   pattern to match (selects multiple)

Author

© 2020 Marlon Richert

License

This project is licensed under the MIT License. See the LICENSE file for details.

zsh-hist's People

Contributors

marlonrichert avatar

Watchers

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.