mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Various additions and fixes
This commit is contained in:
@@ -430,11 +430,12 @@ echo (basename image.jpg .jpg).png
|
||||
for i in *.jpg; convert $i (basename $i .jpg).png; end
|
||||
# Convert all JPEG files in the current directory to the
|
||||
# PNG format using the 'convert' program.
|
||||
|
||||
begin; set -l IFS; set data (cat data.txt); end
|
||||
# Set the `data` variable to the contents of 'data.txt'
|
||||
# without splitting it into an array.
|
||||
\endfish
|
||||
|
||||
The command `begin; set -l IFS; set data (cat data.txt); end`
|
||||
will set the `data` variable to the contents of 'data.txt' without
|
||||
splitting it into an array.
|
||||
|
||||
\subsection expand-brace Brace expansion
|
||||
|
||||
@@ -1036,8 +1037,11 @@ When the cursor is over a parenthesis or a quote, `fish` also highlights its mat
|
||||
|
||||
To customize the syntax highlighting, you can set the environment variables `fish_color_normal`, `fish_color_command`, `fish_color_substitution`, `fish_color_redirection`, `fish_color_end`, `fish_color_error`, `fish_color_param`, `fish_color_comment`, `fish_color_match`, `fish_color_search_match`, `fish_color_cwd`, `fish_pager_color_prefix`, `fish_pager_color_completion`, `fish_pager_color_description`, `fish_pager_color_progress` and `fish_pager_color_secondary`. Usually, the value of these variables will be one of `black`, `red`, `green`, `brown`, `yellow`, `blue`, `magenta`, `purple`, `cyan`, `white` or `normal`, but they can be an array containing any color options for the `set_color` command.
|
||||
|
||||
Issuing `set fish_color_error black --background=red --bold` will make all commandline errors be written in a black, bold font, with a red background.
|
||||
|
||||
\fish
|
||||
set fish_color_error black --background=red --bold
|
||||
# Make all commandline errors be written in a black,
|
||||
# bold font, with a red background.
|
||||
\endfish
|
||||
|
||||
\subsection title Programmable title
|
||||
|
||||
|
||||
Reference in New Issue
Block a user