Comments (2)
Yes, PR is welcome.
I am not sure I understand the
Using CMD_EXPANDED=$3 instead of CMD_EXPANDED=$2
part, but let's see in the PR if I get it.
(2) seems sensible.
from alias-tips.
Regarding CMD_EXPANDED=$3
, from zsh doc (http://zsh.sourceforge.net/Doc/Release/Functions.html):
The actual command that will be executed (including expanded aliases) is passed in two different forms: the second argument is a single-line, size-limited version of the command (with things like function bodies elided); the third argument contains the full text that is being executed.
What I experience currently is long commands are falsely detected as aliases. I believe this is exactly because the second argument to the hook is size-limited.
from alias-tips.
Related Issues (20)
- Preexec hook works correctly,but no output is printed HOT 5
- option to abort the command when alias could be used.
- not only does force abort the command I'm running, it aborts my entire zsh session HOT 4
- grep -> ripgrep alias error HOT 8
- Brew Formulae for easy OSX install HOT 3
- Reveal git aliases HOT 1
- Module introduced to prezto
- Performance Hit on Oh My Zsh HOT 2
- `ZSH_PLUGINS_ALIAS_TIPS_FORCE=1` not working HOT 2
- Python Required? HOT 1
- python command not found error HOT 1
- grep: (standard input): binary file matches HOT 4
- Constantly showing suggestion even when using suggestion
- _alias_tips__preexec:34: command not found: python HOT 5
- Support zsh-abbr
- Prefer the shortest command when there are multiple possible aliases HOT 3
- feature request: show alias the other way around HOT 2
- aliasing git breaks functionality
- [Request] support partial alias HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alias-tips.