![]() Note: fish version 2.1 supported -a WORD=PHRASE. -e WORD or -erase WORD Erase the abbreviation WORD. ![]() -l or -list Lists all abbreviated words.-s or -show Show all abbreviated words and their expanded phrases in a manner suitable for export and import.-a WORD PHRASE or -add WORD PHRASE Adds a new abbreviation, causing WORD to be expanded to PHRASE.If you keep the variable as universal, abbr -add statements in config.fish will do nothing but slow down startup slightly. You can create abbreviations directly on the command line and they will be saved automatically and made visible to other fish sessions if fish_user_abbreviations is a universal variable. If you want your abbreviations to be private to a particular fish session you can put the following in your *~/.config/fish/config.fish* file before you define your first abbrevation: if status -is-interactive set -g fish_user_abbreviations abbr -add first 'echo my first abbreviation' abbr -add second 'echo my second abbreviation' # etcetera end This is automatically created as a universal variable the first time an abbreviation is created. After entering gco and pressing Space or Enter, the full text git checkout will appear in the command line.Ībbreviations are stored in a variable named fish_user_abbreviations. For example, a frequently-run command such as git checkout can be abbreviated to gco. abbr -show abbr -list abbr -erase wordĪbbr manipulates the list of abbreviations that fish will expand.Ībbreviations are user-defined character sequences or words that are replaced with longer phrases after they are entered. help echo # Open a web browser to show the relevant documentation These are all described below.Īlmost all fish commands respond to the -h or -help options to display their relevant help, also accessible using the help and man commands, like so: echo -h echo -help # Prints help to the terminal window man echo # Displays the man page in the system pager # (normally 'less', 'more' or 'most'). Command referenceįish ships with a large number of builtin commands, shellscript functions and external commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |