HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

abbr — Manage abbreviations for the fish shell. User-defined words are replaced with longer phrases after t

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandfishabbrclimanageforabbreviations
linux

Problem

How to use the abbr command: 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>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/abbr

Revisions (0)

No revisions yet.