A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/brymck/print-alias below:

brymck/print-alias: A Zsh plugin for printing expanded aliases

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

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

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:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4