2021-12-25 00:09:46 +01:00
|
|
|
# abbr
|
|
|
|
|
|
|
|
> Manage abbreviations for the fish shell.
|
|
|
|
> User-defined words are replaced with longer phrases after they are entered.
|
|
|
|
> More information: <https://fishshell.com/docs/current/cmds/abbr.html>.
|
|
|
|
|
|
|
|
- Add a new abbreviation:
|
|
|
|
|
2025-04-27 10:35:40 +03:00
|
|
|
`abbr {{[-a|--add]}} {{abbreviation_name}} {{command}} {{command_arguments}}`
|
2021-12-25 00:09:46 +01:00
|
|
|
|
|
|
|
- Rename an existing abbreviation:
|
|
|
|
|
|
|
|
`abbr --rename {{old_name}} {{new_name}}`
|
|
|
|
|
|
|
|
- Erase an existing abbreviation:
|
|
|
|
|
2025-04-27 10:35:40 +03:00
|
|
|
`abbr {{[-e|--erase]}} {{abbreviation_name}}`
|
2021-12-25 00:09:46 +01:00
|
|
|
|
|
|
|
- Import the abbreviations defined on another host over SSH:
|
|
|
|
|
2025-04-27 10:35:40 +03:00
|
|
|
`ssh {{host_name}} abbr {{[-s|--show]}} | source`
|