mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Addition of 'ascii fish' logo
+ small fixes
This commit is contained in:
parent
c39fe3433b
commit
b3e28ac41a
7 changed files with 30 additions and 30 deletions
|
@ -60,9 +60,13 @@ which is then transformed by Doxygen into an HTML version (`make user_doc`):
|
||||||
|
|
||||||
`<span class="command">echo</span> <span class="argument">hello</span> <span class="argument">world</span>`
|
`<span class="command">echo</span> <span class="argument">hello</span> <span class="argument">world</span>`
|
||||||
|
|
||||||
A man page version (`make share/man`): __echo__ hello world
|
A man page version (`make share/man`):
|
||||||
|
|
||||||
And a simple HTML version for the developer docs (`make doc` and `make doc/refman.pdf`): `echo hello world`
|
__echo__ hello world
|
||||||
|
|
||||||
|
And a simple HTML version for the developer docs (`make doc`) and the LATEX/PDF manual (`make doc/refman.pdf`):
|
||||||
|
|
||||||
|
`echo hello world`
|
||||||
|
|
||||||
### Choosing a CLI style: using a \\fish{style} block
|
### Choosing a CLI style: using a \\fish{style} block
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 23 KiB |
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
Use the <a href="commands.html#set">`set`</a> command:
|
Use the <a href="commands.html#set">`set`</a> command:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
set -x key value
|
set -x key value
|
||||||
set -e key
|
set -e key
|
||||||
\endfish
|
\endfish
|
||||||
|
@ -51,7 +51,7 @@ Edit the file `~/.config/fish/config.fish`, creating it if it does not exist (No
|
||||||
|
|
||||||
The prompt is the output of the `fish_prompt` function. Put it in `~/.config/fish/functions/fish_prompt.fish`. For example, a simple prompt is:
|
The prompt is the output of the `fish_prompt` function. Put it in `~/.config/fish/functions/fish_prompt.fish`. For example, a simple prompt is:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
set_color $fish_color_cwd
|
set_color $fish_color_cwd
|
||||||
echo -n (prompt_pwd)
|
echo -n (prompt_pwd)
|
||||||
|
@ -72,7 +72,7 @@ Type some part of the command, and then hit the @cursor_key{↑,up} or @curso
|
||||||
|
|
||||||
`fish` uses parentheses for subcommands. For example:
|
`fish` uses parentheses for subcommands. For example:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
for i in (ls)
|
for i in (ls)
|
||||||
echo $i
|
echo $i
|
||||||
end
|
end
|
||||||
|
@ -94,7 +94,7 @@ Use the `env` command.
|
||||||
|
|
||||||
You can also declare a local variable in a block:
|
You can also declare a local variable in a block:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
begin
|
begin
|
||||||
set -lx SOME_VAR 1
|
set -lx SOME_VAR 1
|
||||||
command
|
command
|
||||||
|
@ -137,7 +137,7 @@ The `open` command uses the MIME type database and the `.desktop` files used by
|
||||||
|
|
||||||
If you installed fish manually (e.g. by compiling it, not by using a package manager), you first need to add fish to the list of shells by executing the following command (assuming you installed fish in /usr/local) as root:
|
If you installed fish manually (e.g. by compiling it, not by using a package manager), you first need to add fish to the list of shells by executing the following command (assuming you installed fish in /usr/local) as root:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
echo /usr/local/bin/fish >>/etc/shells
|
echo /usr/local/bin/fish >>/etc/shells
|
||||||
\endfish
|
\endfish
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ If you installed a prepackaged version of fish, the package manager should have
|
||||||
|
|
||||||
In order to change your default shell, type:
|
In order to change your default shell, type:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
chsh -s /usr/local/bin/fish
|
chsh -s /usr/local/bin/fish
|
||||||
\endfish
|
\endfish
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ Quick answer:
|
||||||
|
|
||||||
Run the following command in fish:
|
Run the following command in fish:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
echo 'function fish_title;end' > ~/.config/fish/config.fish
|
echo 'function fish_title;end' > ~/.config/fish/config.fish
|
||||||
\endfish
|
\endfish
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ Note that fish has a default titlebar message, which will be used if the fish_ti
|
||||||
|
|
||||||
Change the value of the variable `fish_greeting` or create a `fish_greeting` function. For example, to remove the greeting use:
|
Change the value of the variable `fish_greeting` or create a `fish_greeting` function. For example, to remove the greeting use:
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
\endfish
|
\endfish
|
||||||
|
|
||||||
|
@ -207,7 +207,7 @@ Should you wish to uninstall fish, first ensure fish is not set as your shell. R
|
||||||
|
|
||||||
Next, do the following (assuming fish was installed to /usr/local):
|
Next, do the following (assuming fish was installed to /usr/local):
|
||||||
|
|
||||||
\fish
|
\fish{cli-dark}
|
||||||
rm -Rf /usr/local/etc/fish /usr/local/share/fish ~/.config/fish
|
rm -Rf /usr/local/etc/fish /usr/local/share/fish ~/.config/fish
|
||||||
rm /usr/local/share/man/man1/fish*.1
|
rm /usr/local/share/man/man1/fish*.1
|
||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
\mainpage Documentation
|
\mainpage Documentation
|
||||||
\htmlonly[block]
|
\htmlonly[block]
|
||||||
<div class="fish_left_bar">
|
<div class="fish_left_bar">
|
||||||
|
<div class="logo"></div>
|
||||||
<div class="menu docs_menu">
|
<div class="menu docs_menu">
|
||||||
\endhtmlonly
|
\endhtmlonly
|
||||||
@toc@
|
@toc@
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
\page tutorial Tutorial
|
\page tutorial Tutorial
|
||||||
\htmlonly[block]
|
\htmlonly[block]
|
||||||
<div class="fish_left_bar">
|
<div class="fish_left_bar">
|
||||||
|
<div class="logo"></div>
|
||||||
<div class="menu tutorial_menu">
|
<div class="menu tutorial_menu">
|
||||||
\endhtmlonly
|
\endhtmlonly
|
||||||
- <a href="#tut_why_fish">Why fish?</a>
|
- <a href="#tut_why_fish">Why fish?</a>
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
html { font-size: 62.5%; }
|
html { font-size: 62.5%; }
|
||||||
|
@ -15,9 +13,10 @@ body {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.logo {
|
.logo {
|
||||||
position: absolute;
|
width: 210px;
|
||||||
width: 200px;
|
height: 147px;
|
||||||
height: 135px;
|
margin-left: 2rem;
|
||||||
|
margin-bottom: -3rem;
|
||||||
background-image: url(ascii_fish.png);
|
background-image: url(ascii_fish.png);
|
||||||
}
|
}
|
||||||
/*Top site index*/
|
/*Top site index*/
|
||||||
|
@ -25,9 +24,9 @@ body {
|
||||||
font: 500 1.4rem/3.6rem "DejaVuSansCondensed", Roboto, Verdana, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font: 500 1.4rem/3.6rem "DejaVuSansCondensed", Roboto, Verdana, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
border: none;
|
border: none;
|
||||||
color: white;
|
color: white;
|
||||||
background-color: #1f2d53;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background-color: #1f2d53;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 3.6rem;
|
height: 3.6rem;
|
||||||
}
|
}
|
||||||
|
@ -47,21 +46,19 @@ body {
|
||||||
font: 400 1.3rem/2.1rem "DejaVuSans", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font: 400 1.3rem/2.1rem "DejaVuSans", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
.fish_left_bar {
|
.fish_left_bar {
|
||||||
width: 250px;
|
width: 25rem;
|
||||||
color: white;
|
color: white;
|
||||||
font-family: "DejaVuSansCondensed", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: "DejaVuSansCondensed", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
background-color: #1f2d53;
|
background-color: #1f2d53;
|
||||||
}
|
}
|
||||||
.fish_left_little { width: 200px; }
|
.fish_left_little { width: 19rem; }
|
||||||
.fish_right_bar {
|
.fish_right_bar {
|
||||||
margin-left: 250px;
|
margin-left: 25rem;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
padding: 0 3rem;
|
padding: 0 3rem;
|
||||||
-moz-box-shadow: -6px 0 6px 4px black;
|
|
||||||
-webkit-box-shadow: -6px 0 6px 4px black;
|
|
||||||
box-shadow: -0.3rem 0.3rem 1rem #000818;
|
box-shadow: -0.3rem 0.3rem 1rem #000818;
|
||||||
}
|
}
|
||||||
.fish_right_big { margin-left: 200px; }
|
.fish_right_big { margin-left: 19rem; }
|
||||||
.fish_only_bar {
|
.fish_only_bar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 3rem;
|
padding-bottom: 3rem;
|
||||||
|
@ -225,7 +222,7 @@ h1 > code, h2 > code, h3 > code {
|
||||||
}
|
}
|
||||||
/*Page overrides*/
|
/*Page overrides*/
|
||||||
/*Documentation*/
|
/*Documentation*/
|
||||||
.docs_menu { line-height: 2rem }
|
.docs_menu { line-height: 2rem; }
|
||||||
.docs_menu > ul > li { position: static; }
|
.docs_menu > ul > li { position: static; }
|
||||||
.docs_menu > ul ul { margin: 0.6rem 0; }
|
.docs_menu > ul ul { margin: 0.6rem 0; }
|
||||||
.docs_menu > ul ul > li { margin-bottom: 0.2rem; }
|
.docs_menu > ul ul > li { margin-bottom: 0.2rem; }
|
||||||
|
@ -238,9 +235,9 @@ h1 > code, h2 > code, h3 > code {
|
||||||
padding: 0 4rem;
|
padding: 0 4rem;
|
||||||
}
|
}
|
||||||
/*Commands*/
|
/*Commands*/
|
||||||
.commands_menu { line-height: 2rem }
|
.commands_menu { line-height: 2rem; }
|
||||||
/*FAQ*/
|
/*FAQ*/
|
||||||
.faq_menu { line-height: 2rem }
|
.faq_menu { line-height: 2rem; }
|
||||||
.faq_menu > ul li { margin-bottom: 0.6rem; }
|
.faq_menu > ul li { margin-bottom: 0.6rem; }
|
||||||
/*Licenses*/
|
/*Licenses*/
|
||||||
.license {
|
.license {
|
||||||
|
|
|
@ -558,7 +558,7 @@ x
|
||||||
s/\([^{|] *\)|/\1@redr{|}/g
|
s/\([^{|] *\)|/\1@redr{|}/g
|
||||||
s/&$/@redr{\&}/
|
s/&$/@redr{\&}/
|
||||||
s/\([^{&] *\)&[^a-z]/\1@redr{\&}/g
|
s/\([^{&] *\)&[^a-z]/\1@redr{\&}/g
|
||||||
s/\([^{<>^] *\)\([0-9]* *[<>^][<>^]*[^@][a-zA-Z0-9._-]*\)/\1@redr{\2}/g
|
s/\([^{<>^] *\)\([0-9]* *[<>^][<>^]*[^@][a-zA-Z0-9./_-]*\)/\1@redr{\2}/g
|
||||||
s/\\}/}\\/g
|
s/\\}/}\\/g
|
||||||
#.
|
#.
|
||||||
# Now we can add in 'unsafe' entities that would be too greedy.
|
# Now we can add in 'unsafe' entities that would be too greedy.
|
||||||
|
@ -571,9 +571,6 @@ s/\($[$]*\)\([A-Za-z_0-9][A-Za-z_0-9]*\)/@vars{@optr{\1}\2}/g
|
||||||
# Files
|
# Files
|
||||||
s/\([^@]\)\([A-Za-z0-9_-][A-Za-z0-9_-]*\.[a-z0-9*][a-z0-9*]*\)/\1@fsfo{\2}/g
|
s/\([^@]\)\([A-Za-z0-9_-][A-Za-z0-9_-]*\.[a-z0-9*][a-z0-9*]*\)/\1@fsfo{\2}/g
|
||||||
#.
|
#.
|
||||||
# Fold Files into Paths
|
|
||||||
s/\(@path{[^}]*\)}@fsfo/\1}@fsfo/
|
|
||||||
#.
|
|
||||||
:commands
|
:commands
|
||||||
#.
|
#.
|
||||||
#### This section is built in the Makefile. Just some formatting examples. #####
|
#### This section is built in the Makefile. Just some formatting examples. #####
|
||||||
|
|
Loading…
Reference in a new issue