All Projects → oh-my-fish → plugin-bang-bang

oh-my-fish / plugin-bang-bang

Licence: MIT license
Bash style history substitution for Oh My Fish

Programming Languages

shell
77523 projects

!!

Bash style history substitution for Oh My Fish.

MIT License Fish Shell Version Oh My Fish Framework


This plugin wraps Aerys Bat's implementation of bash style history substitution.

Install

$ omf install bang-bang 

Usage

!! on command line will be replaced by last command issued:

$ mv /etc/hostname /etc/hostname.old
mv: rename /etc/hostname to /etc/hostname.old: Operation not permitted
$ sudo !!

!$ on command line will be replaced by last command arguments:

$ mkdir /tmp/test
$ cd !$

Troubleshooting

If the keybindings fail to work after installing the plugin, the issue is likely because of an existing ~/.config/fish/functions/fish_user_key_bindings.fish that is overiding the plugins.

The solution is to either removing the exising file or to concat the contents of the plugin functions/fish_user_key_bindings.fish file into it.

License

MIT © Aerys Bat, Derek Stavis et al

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].