Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Save CLI commands as aliases on a directory basis!
Requires node >= 10.x
npm install alium -g
or yarn global add alium
or similar.
put this in your ~/.bashrc
or somewhere suitable:
ali () {
ali-cleanup () {
sleep 1 && test -f ~/.alium/cmd && rm -f ~/.alium/cmd;
}
alium-bin $@;
if [ $? -eq 23 ]; then
ali-cleanup & test -f ~/.alium/cmd && source ~/.alium/cmd
fi
}
source ~/.bashrc
before you try to use ali
That's it 🎉
Options:
-v, --version output the version number
-l, --list List aliases in this directory
-p, --pick Pick from aliases for this directory
-s, --save [alias] Save an alias for this directory
-r, --remove [alias] remove alias from this directory
-h, --help output usage information
To add a new command to the current directory: ali -s "my-command"
Note: env variables have to be escaped: ali -s "echo \$SHELL"
ali
will then ask you what to name the new alias.
List all available aliases: ali -l
or just ali
.
Remove alias: ali -r foobar
# After you have run
$ some-long-winded-command --with parameters --you can --never ./remember
# You can now do
$ ali -s "!!"
# To save a new alias for the aforementioned command
$ ali -s "some-long-winded-command --with parameters --you can --never ./remember"
MIT
FAQs
Save CLI commands as aliases on a directory basis
The npm package alium receives a total of 6 weekly downloads. As such, alium popularity was classified as not popular.
We found that alium demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.