Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alium

Package Overview
Dependencies
Maintainers
9
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alium

Save CLI commands as aliases on a directory basis

  • 1.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by533.33%
Maintainers
9
Weekly downloads
 
Created
Source

alium 🍝

Save CLI commands as aliases on a directory basis!

CircleCI

Requires node >= 10.x

Installation

  1. npm install alium -g or yarn global add alium or similar.

  2. 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
    }
    
  3. source ~/.bashrc before you try to use ali

  4. That's it 🎉

Usage

Quickstart

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

Typical usage

# 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"

Licence

MIT

Sponsors

Keywords

FAQs

Package last updated on 14 Jun 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc