A fish plugin that reminds you to use your aliases and abbreviations! FYCU (pronounced FEYE-COO) is a complete rewrite of the original Fish You Should Use plugin with bug fixes and new features.
The plugin is in very active development and is considered in an alpha state, so there will be bugs! You have been warned
fisher install NovaViper/fycu
NixOS Module
(TBA)
home-manager.users.USER = {
programs.fish.plugins = [
{
name = "fycu";
src = pkgs.fetchFromGitHub {
owner = "NovaViper";
repo = "fycu";
rev = "OBTAIN FROM GITHUB";
hash = "OBTAIN WITH `nix-prefetch-url https://github.com/NovaViper/fycu`";
};
}
];
};You don't need to do anything extra! Once the plugin's installed, fycu will
let you know if you wrote a command that has an existing alias or abbreviation.
Also, with the way fish shell aliases function, fycu cannot tell a local from
a global alias/abbreviation.
fycu can detect git aliases
and abbreviations!
By default, fycu will display its reminder messages before a command has
executed. However, you can change it to display after a command has executed
by setting the value of FYCU_MESSAGE_POSITION.
set --global FYCU_MESSAGE_POSITION "after"
Since there are still pressing bugs in the abbreviation detection, I've left the
mode disabled with FYCU_ENABLE_ABBR set to false. If you wish to try it out,
then simply set it to true
You can tell fycu to permanently ignore certain aliases/abbreviations with a
couple of different options:
You can set FYCU_IGNORED_ALIASES for standard aliases
set --global FYCU_IGNORED_ALIASES "ls,fd"
set FYCU_IGNORED_GIT_ALIASES for git aliases
set --global FYCU_IGNORED_GIT_ALIASES "reword,rewrite"
and FYCU_IGNORED_GIT_ALIASES for abbreviations.
set --global FYCU_IGNORED_ABBRS "jd,n"
These variables are verified while using the plugin (when the respective check function). The _fycu_verify_ignored FYCU_IGNORED_* function can also be manually executed by calling it again and giving it the name of the ignore type in the session. If the variables are formatted correctly, then there will be no errors logged in the terminal.
Not implemented, or may not be implemented due to issues noted in TODO
Pull Requests and Feedback are welcomed!
This is my very first fish plugin so there are bound to be bugs so feel free to open an issue or open a pull request! I also have a TODO list for upcoming features I plan to add.
The plugin's development wouldn't have been possible without Llakala's help! Additionally:
- Rewritten from Fish You Should Use plugin, which is a port of zsh-you-should-use
- Abbreviation detection from fish-abbreviation-tips and behavior inspiration from zsh-abbr



