Skip to content

A package that provides a tip in Nushell, suggesting the use of an alias for commands that haven't been used with it.

License

Notifications You must be signed in to change notification settings

KamilKleina/alias-finder.nu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Description

A simple Nushell plugin that shows an alias when you use a command that has an alias defined. Useful for remembering previously set aliases.

Written as a pure Nushell script for speed. Extremely simple (directly looks up the command in aliases)

> ls -a  
"Alias Tip: la"# │ name         │  
├───┼──────────────┤  
│ 0CHANGELOG.md │  
│ 1LICENCE      │  
│ 2README.md    │  
│ 3 │ alias-finder │  
│ 4 │ nupm.nuon    │  

Installation

Clone the repository and source the module in your config.nu:

overlay use /path/to/alias-finder.nu

Usage

Once sourced, you'll see a tip about using an alias for the command if you haven’t used it.

Contributing

Issues and pull requests are welcome! Feel free to contribute improvements or new features.

Changelog

All changelogs can be found in the CHANGELOG.md file.

License

This project is licensed under the MIT License.

Inspiration

This plugin is based on zsh-alias-finder, originally created for Zsh. It has been adapted for Nushell to provide the same functionality

TODO

  • Add option to ignore certain commands
  • Add option to show the tip in different format

About

A package that provides a tip in Nushell, suggesting the use of an alias for commands that haven't been used with it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published