Files
cheatsheet-tldr/tldr/linux/abbr
2025-04-28 00:20:19 +00:00

27 lines
674 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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:
`abbr {{[-a|--add]}} {{abbreviation_name}} {{command}} {{command_arguments}}`
- Rename an existing abbreviation:
`abbr --rename {{old_name}} {{new_name}}`
- Erase an existing abbreviation:
`abbr {{[-e|--erase]}} {{abbreviation_name}}`
- Import the abbreviations defined on another host over SSH:
`ssh {{host_name}} abbr {{[-s|--show]}} | source`