Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve use of code #16

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -149,7 +149,7 @@ With Fish installed, a thrilling journey lies ahead. Gear up to explore the comm

### Making Fish Your Default Shell, Ahoy!

Once you've installed Fish and it's safely located in your `$PATH`, for example, at /usr/local/bin, you can make it your default shell for a smooth sailing command line experience.
Once you've installed Fish and it's safely located in your `$PATH`, for example, at `/usr/local/bin`, you can make it your default shell for a smooth sailing command line experience.

```fish
echo /usr/local/bin/fish | sudo tee -a /etc/shells
Expand Down Expand Up @@ -553,7 +553,7 @@ function mkdirp
end
```

To make sure this function stays fresh in future Fish sessions, save it to ~/.config/fish/functions/mkdirp.fish. A neat way to accomplish this is by using the [`funcsave`](https://fishshell.com/docs/current/cmds/funcsave.html) function.
To make sure this function stays fresh in future Fish sessions, save it to `~/.config/fish/functions/mkdirp.fish`. A neat way to accomplish this is by using the [`funcsave`](https://fishshell.com/docs/current/cmds/funcsave.html) function.

```fish
funcsave mkdirp
Expand Down Expand Up @@ -597,7 +597,7 @@ This workaround helps you keep some Fish functions under wraps, like a top-secre

Absolutely! Fish's [lazy-loading / autoloading](https://fishshell.com/docs/current/tutorial.html#autoloading-functions) mechanism depends on this match made in heaven.

If you have a file ~/.config/fish/functions/foo.fish with a valid function definition `bar`:
If you have a file `~/.config/fish/functions/foo.fish` with a valid function definition `bar`:

1. In a new shell, trying to run `bar` produces an unknown-command error.
2. Typing `foo` will highlight as a valid command, but produce an unknown-command error.
Expand All @@ -606,7 +606,7 @@ If you have a file ~/.config/fish/functions/foo.fish with a valid function defin
<details>
<summary>Show me the magic!</summary>

Save `bar` to ~/.config/fish/functions/foo.fish.
Save `bar` to `~/.config/fish/functions/foo.fish`.

```fish
function bar
Expand Down Expand Up @@ -903,7 +903,7 @@ end

### Synchronize Background Tasks in Fish Like a Pro

Fish `3.0.0` introduced a dedicated [`wait`](https://fishshell.com/docs/current/cmds/wait.html) builtin for easy synchronization of background tasks. But if you're curious about how it was done before `wait` existed, here's a throwback recipe for you.
Fish 3.0.0 introduced a dedicated [`wait`](https://fishshell.com/docs/current/cmds/wait.html) builtin for easy synchronization of background tasks. But if you're curious about how it was done before `wait` existed, here's a throwback recipe for you.

First, to check if tasks are running in the background, parse the output from the [`jobs`](https://fishshell.com/docs/current/cmds/jobs.html) builtin.

Expand Down