Commit Graph

206 Commits (785fa4787006b7509f8f351e441ebb4171433fa6)

Author SHA1 Message Date
Jorge Bucaran 785fa47870
3.0.6 6 years ago
Jorge Bucaran 73505e74cb
fix: use real target if fishfile is a symbolic link; close #460 6 years ago
Jorge Bucaran 2a6c36b8a9
fix: use string check to determine if filename is a fish file; fix #459
Bug was introduced in 7850f78e8a.

When removing a file don't use `functions -q $filename` as a loose
check for a .fish file. Use a string match instead.

`functions -q $filename` will cause the function defined in the file
to be autoloaded (if it wasn't already) which can cause trouble with
some "dubious" packages that run arbitrary code in function files.
6 years ago
Jorge Bucaran 60d3c4c9c3
3.0.5 6 years ago
Jorge Bucaran 94801fb177
fix: don't fetch a pkg you already fetched 6 years ago
Jorge Bucaran 3e0bca9e47
refactor: better error msg when trying to install pkg without a prefix 6 years ago
Jorge Bucaran 543e97d6c7
3.0.4 6 years ago
Jorge Bucaran d7b9cd526d
fix: use perl for epoch only on FreeBSD & Darwin; fix #458 6 years ago
Jorge Bucaran 7850f78e8a
feat: copy non fish files to $fisher_path; close #456 6 years ago
Jorge Bucaran 2ead99f732
refactor: improve commit error msg when fishfile is not empty 6 years ago
Jorge Bucaran 8f42f7abdf
refactor: dry self-uninstall; add farewell message 6 years ago
Jorge Bucaran 6d796516d9
3.0.3 6 years ago
Jorge Bucaran 13eba771ee
fix: prevent failglob error when $fisher_config is empty; close #455
fish-shell/fish-shell#2719
fish-shell/fish-shell#4175
6 years ago
Jorge Bucaran 5bf5c8da4c
3.0.2 6 years ago
Jorge Bucaran 1bd12771e7
don't try to install a package from an invalid specifier; fix #454 6 years ago
Jorge Bucaran 25661f77cf
3.0.1 6 years ago
Jorge Bucaran 444a8fee8c
fix: create fishfile automatically; close #451
- create fishfile if one doesn't already exist
- only read from stdin when using `add` or `rm` commands
- show help if unknown command is entered
- show error message when fishfile is empty and no packages
  were added, removed or updated
6 years ago
Jorge Bucaran 4e4c2a9524
hotfix: use correct version number (3.0.0) 6 years ago
Jorge Bucaran 54170ef1c3
breaking: implement fisher V3 (#445)
SUMMARY

This  PR  rewrites  fisher  from  the ground  up  and  adds  new
documentation. It introduces some  breaking changes as described
in the  next section. For  a historical background of  this work
see the original V3 proposal #307 and the more recent discussion
about the future of the project #443.

After much debate  and careful consideration I decided  it is in
the best interest of the  project to keep the CLI-based approach
to  dependency  management as  a  facade  to the  fishfile-based
approach originally proposed.

The new `add` commands (previously  `install`) and good ol' `rm`
interactively update  your fishfile and commit  all your changes
in one  sweep. To the  end user, it's as  if you were  adding or
removing  packages like  you already  do now.  Internally, these
commands affect how the fishfile  is parsed and result in adding
new or replacing/removing existing entries followed by a regular
`fisher` run.

INSTALLING

- `install` has been renamed to `add`

- Installing from a gist is  no longer supported (but it will be
back in a future release—removed only to simplify the rewrite)

- To  install a package  from a tag or  branch use an  at symbol
`@`—the colon `:` is deprecated

LISTING

- `ls` and `rm` are still available with a few minor differences

- `ls` followed by a package name does not list specific package
information (may be added back in a future release)

- `ls`  output format  no longer displays  a legend  to indicate
whether a package is a theme or a local package; now it's a flat
dump of every installed package specifier

- For local packages the full path is shown instead

- I want  to add a `--tree`  option in to display  packages in a
tree-like format in the future

- `ls-remote` has been removed as there is no longer a preferred
organization to  look for packages— there  is no plan to  add it
back

UPDATING

-  A new  `self-update` command  has been  introduced to  update
fisher itself

- fisher  will be only  updated when  a new version  is actually
available

- `update` has been removed

-  Everything is  installed from  scratch everytime  you add  or
remove  something,  so  there  is no  need  to  update  specific
packages—you're always up-to-date

-  To  lock  on  a  specific  package  version  install  from  a
tag/branch, e.g., `mypkg/foobar@1.3.2`

UNINSTALLING

- `self-uninstall` works as usual

HELP & VERSION

- `help` only displays fisher usage help

- help is dumped to stdout instead of creating a man page on the
fly and piping it to your pager `version` works as usual

ENVIRONMENT

- `$fish_path` been  renamed to `$fisher_path` to  make it clear
that this is a fisher specific extension, not your shell's

ECOSYSTEM

-  Oh  My  Fish!  packages  are  still  supported,  albeit  less
attention is paid to them

-  Some  packages that  use  Oh  My Fish!  specific  environment
variables or events might not work

- Most of  Oh My Fish! extensions are no  longer necessary since
fish 2.3, therefore it should be a simple matter to upgrade them
to modern fish

DEPENDENCIES

- fisher can now run on fish 2.0

- It's a  good idea to upgrade  to at least fish 2.3  to use the
string builtin and configuration snippets, but there's no reason
for fisher to force you to use any fish version

- `curl` is required for fetching packages

- I am considering adding a  fallback to `wget` if `curl` is not
available on your system

- `git` is optional

-  V3   fetches  packages  directly  from   github,  gitlab  and
bitbucket, if you are using them

- git  is only used  (implementation still  wip) if you  want to
install a  package from an  unknown git  host like your  own git
server
6 years ago
Jorge Bucaran fa4eec9b2a
refactor: remove ability to rename fisher command itself 6 years ago
Erik P. Hansen b857cac45c Update help to be more in line with README (#440)
- Explain how to copy, not link, files when installing plugins
- This feature was added in v2.13.3
6 years ago
Bjorn Neergaard 8e3e26d7a6 Use standard sh-style redirection for stderr (#416)
`^` has been removed as a stderr redirection operator
(fish-shell/fish-shell#4394) in future versions of fish.

Closes: #416
6 years ago
Jorge Bucaran 52d318b673
2.13.3 6 years ago
Ryan Sullivan 766bd093a1 Allow for copy instead of linking (#401)
* Allow for optional copy on install instead of linking

* Remove eval in favor of proper test call

* Document fisher_copy variable

* Missing ?
6 years ago
Robert Holak 4803a700a1 Fix awk parser to set correct variable. (#419)
The awk json parsing routine was setting a variable of "description"
instead of "info". This was causing a problem where the cached index -
and subsequently ls-remote commands - to show the "%info" format item as
the URL again.
6 years ago
Roman Zhuzha b7b8a1339a improve index file parsing (#412)
* use match() to extract substrings

* match only horizontal whitespaces
6 years ago
Joe Green 79fc2e6f6b `fisher up` obeys $fish_path (#407)
* Ensure fisherman's completions are placed in the correct fisherman directory when running self update.

* Update documentation to include the extra steps required when setting fish_path.

* -U instead of -g in README.
7 years ago
Jorge Bucaran e4f3633f6d
2.13.2 7 years ago
Jorge Bucaran b6ae25826a
Fix bad redirection during self-uninstall. Close #398. 7 years ago
Jorge Bucaran 6ad03af343
→ 2.13.1 🎉 Thanks @christianrondeau. 7 years ago
Christian Rondeau 9e6855aba4 Termux compatibility (#383) 7 years ago
Jorge Bucaran a08ff15a19
2.13.0 7 years ago
Joe George c3172511e0 Fix #391 (#392)
Fisherman was always writing its completion file to $fish_config/completions.

This was incorrect behavior if $fish_path was set to a directory other than
$fish_config (its default).

Note that when using $fish_path to manage functions, completions and snippets, 
you opt out fish default locations which are handled for you by the shell and
consequently are responsible for appending your custom $fish_path/functions
and $fish_path/completions directories to $fish_function_path and $fish_complete_path respectively, as well as sourcing snippets (.fish files under $fish_path/conf.d) on shell 
startup.
7 years ago
Yuji Yamamoto 210fb8c202 Escape "$file" in the warning message. (#390)
Fix https://github.com/fisherman/fisherman/issues/389
7 years ago
Eric Mrak 0073552780 Prevent additional remotes per plugin from affecting fishfile
closes #371
7 years ago
Francisco Lourenco e15ccc8f75 Document how to install branches and tags
Closes: #364
7 years ago
Francisco Lourenco 585787d60e Add notice about fish <2.3.0 and snippet support 7 years ago
Francisco Lourenco 0732e2485b Fix warning message about fish <2.2.0
- `__fisher_log` doesn't work on <2.2.0 anymore so use `echo` instead
- `command -s` option not available on macOS, so use `type` instead
- `type -q` not available on fish <2.2.0,use `type brew >/dev/null 2>&1`
- `brew up` not needed anymore, it auto updates now
- `brew --HEAD` not needed, latest version is enough
7 years ago
Francisco Lourenço ee617c160b Install/Update from branch separated by : or @ (#365)
Examples:

fisher install fisherman/done@dev
fisher install fisherman/done@1.1.0
OR
fisher install fisherman/done:dev
fisher install fisherman/done:1.1.0

Related: #269
8 years ago
Jorge Bucaran 9d5bfca6c2
Fix #359.
fish 2.5 more strict handling of the `test` builtin helped identify
the bug.
8 years ago
Jorge Bucaran 074b6b899c
Bump 2.11.0 8 years ago
Jorge Bucaran b26c988aa6
Allow http:// URLs and optional http/s:// for gitlab, github and bitbucket. 8 years ago
Jorge Bucaran 550c75dc2f
Make sure fisher_cmd_name is set anyway. Related #339. 8 years ago
Jorge Bucaran c42828c7d0
2.10.0 8 years ago
Jorge Bucaran d5869a7ea0
Fix incorrect dep fetch. Close #306.
* Add support to fish-theme-* and fish-plugin-* repo names,
  otherwise fisherman would end up trying to install the
  unknown dependencies.

* Remove support for using `:' as a git tag delimiter when
  installing plugins as that was causing full URLs to be
  parsed incorrectly.
8 years ago
Jorge Bucaran 2ff8eac108
Use a printf verb in ls-remote to avoid printing weird stuff. 8 years ago
Jorge Bucaran 3769e24da2
2.9.0 8 years ago
Jorge Bucaran cde155debd
Introduce fish_path. Fix #301. 8 years ago
Jorge Bucaran 10b5e26332
Remove license from source code. 8 years ago
Jorge Bucaran e33663d791
Add LICENSE here, and remove from main repo. Only 3 files! :) 8 years ago