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

github.com/brymck/print-alias

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/brymck/print-alias

  • v0.0.0-20201105142104-8997efc356c8
  • Source
  • Go
  • Socket score

Version published
Created
Source

print-alias

Test codecov

This prints commands with aliases expanded whenever you use an alias at the command line.

demo

Usage

With zplug, add the following to your ~/.zshrc:

zplug "brymck/print-alias"

You can also use Antigen:

antigen bundle brymck/print-alias

And lastly, if you want to source it manually, you can also clone this repo and use:

source path/to/print-alias.plugin.zsh

Configuration

You can change the line prefix as well as the format of expanded aliases and non-aliases. You can exclude some specific aliases to be displayed. You may as well prevent any command which has been redefined by an alias to be displayed (aliases such as alias grep='grep --colour' or alias ls='ls -aF')

export PRINT_ALIAS_PREFIX='  ╰─> '
export PRINT_ALIAS_FORMAT=$'\e[1m'
export PRINT_NON_ALIAS_FORMAT=$'\e[0m'

export PRINT_ALIAS_IGNORE_REDEFINED_COMMANDS=true
export PRINT_ALIAS_IGNORE_ALIASES=(my_alias my_other_alias)

zplug "brymck/print-alias"

The above will result in output such as the second line here:

configuration

FAQs

Package last updated on 05 Nov 2020

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