GithubHelp home page GithubHelp logo

fish-bang's Introduction

Table of Contents

fish-bang

GitHub tag Fish Version CI

The missing abilities of ! for fish. For example the !! will get the previous command, the !$ will get the last argument of previous command.

The reference manual: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Event-Designators

Usage

This plugin has fully implement the reference abilities.

Command Designators

Abbreviation Description
!! refer to the previous command
!n refer to the last n command in history
!-n refer to the fist n command in history
!string refer to the most recent command preceding the current position in the history list start with string
!?string? refer to the most recent command preceding the current position in the history list containing string
!# The entire command line typed so far

Word Designators

Abbreviation Description
[:]^ The first argument, that is word 1
[:]$ the last argument
[:]* All of the owrds, except the 0th, equals to 1-$
[:]- equals to 0-
[:]% The first word matched by the most recent ?string? search
:0 The 0th word, equals to command word
:n The nth word
:x-y A range of words
:-y equals to 0-y
:x- Abbreviates x-$, but omits the last word
:x* Abbreviates x-$
:s^string1^string2^ Substitute string2 for the first occurrence of string1 in the event line

Special format

Abbreviation Description
!^ equals to !!^
!$ equals to !!$
!* equals to !!*
!% equals to !!%
^string1^string2 equals to !!:s^string1^string2^

install

Install using Fisher(or other plugin manager):

fisher install tenfyzhong/fish-bang

fish-bang's People

Contributors

tenfyzhong avatar

Stargazers

the_next avatar  avatar  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.