Commit Graph

175 Commits

Author SHA1 Message Date
Manu [tennox]
90f875e02d Support installing repo from URL with non-master branch
Somewhat related to #905 and #685
2022-06-20 17:38:56 +01:00
Pablo Santiago Blum de Aguiar
0eeacf0684 omf.packages.name: Fix regex by escaping a dot
Fix #901
2022-05-31 21:14:44 +02:00
Pablo Santiago Blum de Aguiar
d428b723c8 omf.cli.install: Set theme when installed from URL
Co-authored-by: Fabian Homborg <FHomborg@gmail.com>
2022-03-27 13:10:03 +02:00
fdeitylink
029a67518d packages: allow installing with github 'user/repo' 2022-03-26 23:29:32 +01:00
fdeitylink
0cda2c0c1f packages: support {$pkg}_uninstall events
Emit uninstall events independent of uninstall.fish
2022-03-26 23:26:04 +01:00
Karan Verma
b27b3b5aba
Require bundle package after install (#863)
* Require bundle package after install

* Require bundle package after install

* Require bundle package after install

* Require bundle package after install

* Require bundle package after install

* Require bundle package after install

* remove whitespace

Co-authored-by: Pablo Aguiar <scorphus@gmail.com>

Co-authored-by: Derek W. Stavis <dekestavis@gmail.com>
Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
2022-03-09 01:38:08 +01:00
Brian Thompson
59de68c4ca
Change to correct argument to report accurate error message (#853)
* 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>
2021-08-31 21:55:33 +02:00
Marcelo dos Santos Mafra
0b1396ad79
Change "install" to "activate" to make omf theme doc clearer (#816)
* As omf theme <name> won't install a theme per se, changing "install" to "activate" seems clearer. So omf theme will list installed and available themes, activate a installed one, but won't install one.

* As omf theme <name> won't install a theme per se, changing "install" to 
"activate" seems clearer. So omf theme will list installed and available 
themes, activate a installed one, but won't install one.
2021-03-03 23:17:11 +01:00
fdeitylink
a17107e186 packages: improve theme detection in installation 2021-03-03 11:40:48 -08:00
fdeitylink
53d37a9893 packages: do not set default pkg branch to master 2021-03-03 17:51:52 +01:00
Pablo Santiago Blum de Aguiar
1c14af38b9 Fix mismatched brackets error in omf list on Fish 2.2
Ref #707
2020-12-11 21:35:21 +01:00
Pablo Santiago Blum de Aguiar
b2643e95a2 Assert output content in basic tests 2020-12-11 21:33:32 +01:00
YangKeao
df20117be7
Add branch information for install and update package (#685)
* Install package according to branch information in repo

* Add branch information for update package

* add double quotes for $branch

Signed-off-by: Yang Keao <keao.yang@yahoo.com>
2021-01-22 13:02:03 +01:00
Hernawan Faïz Abdillah
f8e09ca604
Fix double slash in index path (#775)
* Fix double slash in index path

Double slash might disturb comparison and make them false positive.

* Fix compatibility with older fish shell

Suggested by @faho [here](https://github.com/oh-my-fish/oh-my-fish/pull/775#issuecomment-736224485).
2020-12-02 07:19:35 +01:00
Justin Hileman
e7a8e74f19
Merge pull request #707 from m4rkforks/master
Fix bug when creating new theme
2020-11-30 11:47:09 -08:00
Sergey Kasmy
777186f897 Call the rm command directly (#718)
Ignore any aliases there may be
2019-08-23 09:37:15 -07:00
Benedict Lee
c8337b654e Enable conf.d loading for themes (#713)
Loading of conf.d files for the current theme is done after all other initialisation to ensure that everything the files need is loaded.
2019-07-22 22:20:52 -07:00
M4rk9696
62a051a201 cli: Load theme from OMF_CONFIG #554 2019-06-08 21:55:28 +05:30
M4rk9696
823b6a79a8 cli: list pkgs and themes from OMF_CONFIG 2019-06-08 21:55:28 +05:30
Patryk Niedźwiedziński
43f60a6c32
Update theme template 2019-03-26 20:38:35 +01:00
Patryk Niedźwiedziński
e7db8b93b1
Update fish version in pkg template 2019-03-26 20:36:57 +01:00
Pablo Santiago Blum de Aguiar
b2d7a444fb fixup! fixup! Remove occurrences of ? as a glob 2019-02-13 09:24:22 +01:00
Pablo Santiago Blum de Aguiar
a4b2f1cfaa Remove occurrences of ? as a glob
Since Fish Shell 3.0 [1], `?` as a glob is deprecated. Fixes #644

  1. https://github.com/fish-shell/fish-shell/releases/tag/3.0.0
2019-02-13 09:24:22 +01:00
Itzik Ephraim
a6a67be60b Use posix stderr redirection (2> instead of ^)
Fish is deprecating `^` as a shortcut for stderr redirection.
Replace with the more common and compatible `2>`.

Fixes #609
2018-06-09 01:23:32 +03:00
pxgamer
c78ce17637
Fix indentation style of omf.packages.new.fish 2018-02-19 16:49:35 +00:00
pxgamer
652d5e341a
Fix setting the variable for 'year' 2018-02-19 16:47:28 +00:00
pxgamer
f8727bef89
Add YEAR token to the list of sed replacements 2018-02-19 16:20:25 +00:00
pxgamer
39a9cffc40
Replace year in LICENSE files with a token 2018-02-19 16:17:42 +00:00
Stephen M. Coakley
65590470bc fix: #577 add environment sanity checks 2017-11-23 21:00:04 -06:00
Stephen M. Coakley
2785f2d525
Fix #529 2017-10-05 10:45:01 -05:00
Stephen M. Coakley
fdb6520250
Compatibility with BSD sed 2017-06-26 10:33:41 -05:00
Stephen M. Coakley
b479197634
Update docs and formatter 2017-06-17 16:19:58 -05:00
Stephen M. Coakley
45cb2b7376
Update help text and completions 2017-06-17 16:19:58 -05:00
Stephen M. Coakley
bfe88ad604
Refactor command execution and help
- Copy and improve help text, and convert it to AsciiDoc files
- Evaluate commands dynamically
2017-06-17 16:19:58 -05:00
Stephen M. Coakley
8092fba290
Limit search to name+description 2017-04-28 14:58:33 -05:00
Stephen M. Coakley
32faf74bb7
Detect themes by fish_prompt instead of name 2017-04-26 22:11:35 -05:00
Stephen M. Coakley
8aef0b2d33
Handle missing theme setting more gracefully 2017-03-03 09:27:44 -06:00
Stephen M. Coakley
a428f29c54 Update functions directory in function path when setting theme (#485) 2017-02-05 14:40:56 -06:00
Stephen M. Coakley
2d1deeb5fd Replace package database with independently installed package repositories (#427)
Replace package database with independently installed package repositories

- Add support for fetching and installing from package repositories containing package URLs and metadata
- Support multiple package repository sources
- Add new repo command
- Remove submit command
- Enhance describe and search commands
- Fix and improve help text for new and adjusted commands
- Fix bundle install exit status
- Refer to plugins as "plugins" instead of the general term "packages"
- Code clarity improvements
- Put plugin/theme distinction into package metadata
2017-02-04 21:49:39 -06:00
Stephen M. Coakley
016ea34a9b oops (#470) 2017-01-06 17:15:36 -06:00
Stephen M. Coakley
d951cb1a15 Normalize redirection syntax (#459) 2016-12-17 20:26:46 -06:00
Stephen M. Coakley
50004e39a1 Print diagnostic info in doctor (#456) 2016-12-17 14:30:25 -06:00
Stephen M. Coakley
674c90d160 Make OMF command colors independent of Fish version (#446) 2016-11-23 13:18:11 -06:00
Stephen M. Coakley
6404410be0 Implement update channels to introduce release versioning (#293) 2016-10-20 18:10:13 -05:00
Pablo Aguiar
00325f886f Amend templates (#403)
* omf/templates: use ones name as copyright holder

* omf/templates: use ones github username in URLs

* omf/templates: use current yeat in copyright notice
2016-09-20 07:25:27 -03:00
Justin Hileman
370b4dd2a5 Fix the blank lines in omf update output. (#394) 2016-09-01 23:20:11 -03:00
Stephen M. Coakley
fb6c2992ba Do not overwrite themes when installing from bundle (#385) 2016-08-29 22:18:27 -05:00
Stephen M. Coakley
cfe8e769db Refactor installer and config setup (#361)
Refactor the installer to be more maintainable and interactive. The installer is now more robust and safe in its operation, and asks interactive questions for choices that the user must resolve. Setting up confuguration is also now changed to take advantage of Fish 2.3 features and does not mess with user's configuration files without permission.

- Make installer smarter and use uninstaller in destroy
- Better handling and checking for offline installs
- `omf destroy` simply uses `install --uninstall`
- Final warning message is no longer displayed when user intentionally aborts install
- Backups are restored during uninstall
- Update the README to detail the new ways to install OMF
2016-08-08 09:00:17 -05:00
Derek Willian Stavis
fcc9d4dc0a key bindings: test if reload function is available (#368)
This fixes a rare case when fish's builtin function
__fish_reload_key_bindings is not defined.
2016-07-23 20:49:42 -03:00
Stephen M. Coakley
e4bd035f15 Fix omf update exit status (#365) 2016-07-18 20:25:02 -03:00