Created
December 19, 2016 17:10
-
-
Save jonatas/940637e6c6fb7007a4b177e9138c1af4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fish_user_key_bindings | |
| bind ! bind_bang | |
| bind '$' bind_dollar | |
| end | |
| function bind_bang | |
| switch (commandline -t)[-1] | |
| case "!" | |
| commandline -t $history[1]; commandline -f repaint | |
| case "*" | |
| commandline -i ! | |
| end | |
| end | |
| function bind_dollar | |
| switch (commandline -t)[-1] | |
| case "!" | |
| commandline -t "" | |
| commandline -f history-token-search-backward | |
| case "*" | |
| commandline -i '$' | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment