Cut splits by equals sign and takes the second field. This ignores path
contents after a second equals sign. Currently this prevents the
installation on NixOS as the nix store path automatically contains a
"=".
This PR instead selects all but the first field and equals sign, leaving
the passed paths as intended.
* Change to correct argument to report accurate error message
* Update pkg/omf/functions/cli/omf.cli.theme.fish
Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
3 years ago
16 changed files with 164 additions and 31 deletions
Oh My Fish provides core infrastructure to allow you to install packages which extend or modify the look of your shell. It's fast, extensible and easy to use.
@ -31,13 +31,13 @@ Oh My Fish provides core infrastructure to allow you to install packages which e
You can get started right away with the default setup by running this in your terminal:
```fish
curl -L https://get.oh-my.fish | fish
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
```
This will download the installer script and start the installation. Alternatively, you can download the installer and customize your install:
@ -86,11 +86,12 @@ Update Oh My Fish, all package repositories, and all installed packages.
- For selective package update, list only the names of packages you wish to
update. You may still include "omf" in the list to update the core as well.
#### `omf install` _`[<name>|<url>]`_
#### `omf install` _`[<name>|<url>|<user/repo>]`_
Install one _or more_ packages.
- You can install packages directly by URL via `omf install URL`
- You can install packages from a GitHub repository via `omf install user/repo`
- When called without arguments, install missing packages from [bundle](#dotfiles).
#### `omf repositories` _`[list|add|remove]`_
@ -107,7 +108,7 @@ Apply a theme. To list available themes, type `omf theme`. You can also [preview
#### `omf remove` _`<name>`_
Remove a theme or package.
Remove a theme or package. If a package was installed via `user/repo`, use `repo` for `name`.
> Packages can use uninstall hooks, so custom cleanup of resources can be done when uninstalling it. See [Uninstall](/docs/en-US/Packages.md#uninstall) for more information.