momo-lab / bash-abbrev-alias Goto Github PK
View Code? Open in Web Editor NEWThis bash functions provides functionality similar to Vim's abbreviation expansion.
License: MIT License
This bash functions provides functionality similar to Vim's abbreviation expansion.
License: MIT License
Thanks for making this, I have been spoiled by fish shell abbr and wanted to try this on a bash shell environment I use.
After downloading and sourcing the plugin, however, every time I execute the abbrev-alias command, or press enter on a bare line, the shell prints an error before consuming the newline, resulting in additional prompts being printed. For example, in a clean shell:
bash-4.2$ bash --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
bash-4.2$
bash-4.2$
bash-4.2$
bash-4.2$ source ~/config/abbrev-alias.plugin.bash
bash-4.2$
bash: bash_execute_unix_command: cannot find keymap for command
bash-4.2$
bash-4.2$
bash: bash_execute_unix_command: cannot find keymap for command
bash-4.2$
bash-4.2$ abbrev-alias --help
bash: bash_execute_unix_command: cannot find keymap for command
bash-4.2$ abbrev-alias --help
abbrev-alias 0.1.0
usage: abbrev-alias [OPTIONS] {name=value ...}
abbrev-alias -u {name ...}
options:
-c, --command register alias as 'alias name=value'
-g, --global register alias as 'alias -g name=value' like
-e, --eval evaluates subshells on expansion
-u, --unset unregister alias
-h, --help show this help
-v, --version show version
bash-4.2$
Before sourcing the plugin, newline behaves as normal, but after sourcing the errors start appearing, including when pressing enter after the command abbrev-alias --help
.
Any thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.