Commit Graph

263 Commits (6401d1850433e2beadc94940d895217145dc43ce)

Author SHA1 Message Date
Jorge Bucaran 6401d18504
3.2.5
- ci: use && (tears of joy)
- docs: better explore package directions
- refactor: add license info to README; remove LICENSE file
- refactor `fisher ls REGEX`
- refactor: merge fishfile read/write parser to one script
- refactor: take advantage of nullglob in for loops
- refactor: prepend "fisher:" to error messages to improve logging
- refactor: remove unnecessary message after self-uninstall
- refactor: rename `fisher self-complete` to `fisher complete`
- refactor: simplify status report format script
6 years ago
Stefan Maric 1211e0bafa fix: override fishfile content instead of replacing the file
This allows fishfile to be a symlink, which I used to keep track of my
dotfiles in a repo, and broke after upgrading to V3.
6 years ago
Jorge Bucaran f1766dcfa0
refactor: automate erasing variables in uninstall 6 years ago
Jorge Bucaran d1e49f8d9a
3.2.4 6 years ago
Jorge Bucaran 78c0852162
feat: filter ls output using a regular expression; close #512 6 years ago
Jorge Bucaran 12661c592f
fix: ls should show only user installed packages; close #511 6 years ago
Jorge Bucaran 03bfe5ed2a
3.2.3 6 years ago
Jorge Bucaran 14c740d1d6
docs: move legacy fish support guide to issues; #510 6 years ago
Jorge Bucaran fbfc7c04f3
refactor: improve `fisher rm` completions
For tab completions we want to list only the packages that you
added yourself (via the CLI or fishfile) and ignore those that
are installed but are dependencies of another package/s.
6 years ago
Jorge Bucaran 5cb9b3d7ea
refactor: keep break on the same line 6 years ago
Jorge Bucaran 076e12db1a
refactor: for consistency, don't use builtin jobs, just jobs 6 years ago
Jorge Bucaran 37335526dc
refactor: date +%s%3N should work on Linux (or print only seconds) 6 years ago
Jorge Bucaran e1469e5a39
fix: use same path for other *BSDs in _fisher_now 6 years ago
Jorge Bucaran fff873955a
fix: print result even if t1-t0 equals 0; close #508 6 years ago
Jorge Bucaran 37c9d70674
refactor: improve awk script readability in _fisher_fetch 6 years ago
Jorge Bucaran 23462edfd0
refactor: improve fishfile read field sep regex 6 years ago
Jorge Bucaran 9293e8b3b7
refactor: improve jobs regex 6 years ago
Jorge Bucaran 6990b81599
refactor: use -e flag for consistency 6 years ago
Jorge Bucaran 7140368155
refactor: remove extraneous argument 6 years ago
Jorge Bucaran 79b2f21662
3.2.2 6 years ago
Jorge Bucaran 64a812e90e
bug: fix name format regex; close #506 6 years ago
Jorge Bucaran 78f35610ca
3.2.1 6 years ago
Jorge Bucaran 49785a134b
fix: don't create cache directory before fetching 6 years ago
Jorge Bucaran 39e9f3f340
3.2.0
- Optimize startup path #494
  - Cuts fisher-related startup time to roughly 25ms
  - Reduce legacy fish support (~~>=2.0~~ >=2.1)
- Read fishfile from `$fisher_path` instead of `$fish_config` #480, #479
- Don't add invalid packages to fishfile / validate fishfile #478 #484 #492
- Rewrite tar expansion logic / don't use `--strip-components` #489 #496
  - Better OpenBSD support
  - Better msys2 on Windows 10 support
- Create symbolic links of original files when adding local packages #502
6 years ago
Sefa Eyeoglu d65b86487b
Read fishfile from $fisher_path instead of $fish_config (#480) 6 years ago
Bjorn Neergaard 6e5a751e16
Optimize fisher startup path (#494)
* With the addition of keybinding support for fish 2.x, fisher greatly
increases shell startup time (50-100ms in my testing). This is due to a
number of reasons, including using less-than-ideal builtins,
unconditionally running mkdir, unconditionally recreating
conf.d/fisher.fish, and checking for curl on startup (instead of when
curl is used).

* This patch cuts fisher-related startup time to roughly 25ms, simplifying
the code paths as much as I am able.

* The source function is removed as a compromise for speed. Fish 2.1 and
greater support `source`, and supporting fish 2.0 is not worth a hefty
speed penalty in my opinion.

* Remove curl checks, invert version logic.

* Update README to reflect fish 2.1+ requirement
6 years ago
Jorge Bucaran 2d6b6a1926
feature: don't add invalid packages to fishfile; fix #484 6 years ago
Jorge Bucaran e9925f4a96
3.1.1 6 years ago
Jorge Bucaran d653e0e0e9
refactor: improve readability / indentation 6 years ago
Jorge Bucaran 71974a2527
feat: show error if package being removed is not found; close #478 6 years ago
Jorge Bucaran 2be2ea6109
refactor: rename seen→seen_pkgs 6 years ago
Jorge Bucaran aff893c05b
refactor: change regex to remove everything before a ***github.com/foo/bar 6 years ago
Jorge Bucaran ddf7334854
3.1.0 6 years ago
Jorge Bucaran c9974efc12
feat: add user key bindings autoloading for legacy fish
Packages add key bindings via configuration snippets. As it turns out,
configuration snippets are not available  in legacy fish and only fish
3.0 or newer can use the bind builtin on shell startup.

To support  packages that add key  bindings in legacy fish,  we make a
copy  of  the  user's  fish_user_key_bindings function  (if  there  it
exists)  and create  a new  one that  when called,  will source  every
*_key_bindings.fish  inside \$fisher_path/conf.d  and finally  run our
copy of the  user's fish_user_key_bindings, if it  exists, to preserve
any user defined key bindings.

To be able to  run code on shell startup we  create a fisher.fish file
inside \$fisher_path/conf.d if running an  older version of fish. When
the user  upgrades to  a supported  fish version,  we'll automatically
remove this file.
6 years ago
Jorge Bucaran 207ccf00b6
refactor: add more info to help command
Command line usage help now tells you that running fisher will
update installed packages. Running fisher also commits fishfile
changes, but I couldn't fit all the words on the same line.
6 years ago
Jorge Bucaran 76bb67b9c6
fix: use command 6 years ago
Jorge Bucaran 24e9154688
refactor: function, var names & spacing
- _fisher_fishfile_load→_fisher_fishfile_read
6 years ago
Jorge Bucaran 77fc030c03
feat: copy files from sub directories; close #468
Supporting nested directories is an anti-feature. It exists only
so that we can install certain packages that are structured that
way. All functions will share the same scope and location.
6 years ago
Jorge Bucaran 8d3e4d367e
fix: normalize package id in fishfile format script 6 years ago
Jorge Bucaran 45e556ab18
3.0.9 6 years ago
Jorge Bucaran 4d953fa72e
feat: custom hosted packages via ssh+git; fix #464
Use git to install packages hosted in a custom server
via ssh using a URL like: owner@host.xz:path/to/repo
6 years ago
Jorge Bucaran da792f6887
style: improve package fetch error message 6 years ago
Jorge Bucaran 44ec48b472
refactor: use `id` to refer to package name specifier, not `name` 6 years ago
Jorge Bucaran 993b471777
refactor: improve readability of status report generator 6 years ago
Jorge Bucaran 32dbf148bb
refactor: improve fishfile formatter normalize regex 6 years ago
Jorge Bucaran 55b543eb13
fix: display correct time on Linux; close #463 6 years ago
Joe George 28aaa277e0 fix: don't strip github.com from local paths; fix #472 6 years ago
Michiel Scholten 1d82bee9c2 fix: replace ln with cp; don't hardlink; close #470 6 years ago
Jorge Bucaran 68e4ee631f
3.0.8 6 years ago
Jorge Bucaran 23379887c0
refactor: simplify builtin jobs parse script 6 years ago