Commit Graph

41 Commits (master)

Author SHA1 Message Date
Simon Plakolb 55da5f7b6f Fix cutting of paths with equals signs
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.
2 years ago
Pablo Santiago Blum de Aguiar dc9d2c32d5 Remove leading path element when extracting tarball
Ref.: #787
3 years ago
Pablo Santiago Blum de Aguiar 8ad49c583b Create OMF_PATH when installing offline
Fix #787
3 years ago
Frederick Henderson 5b9c4b4b68
Fixes #738 by changing the git config autocrlf test to check for what… (#742)
Fixes #738 by changing the git config autocrlf test to check for what we do not want to see "false".

Instead of trying to convert the output of git config autocrlf to binary, which will not always work as "input" is also a valid value in addition to true and false, we check for the value false and exit if it is found.
4 years ago
Kevin Konrad 82822d911b Add PR templates and update install.sha256 5 years ago
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
5 years ago
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
6 years ago
Stephen M. Coakley ce38c3d4e2
use path queries compatible with old fish 6 years ago
Stephen M. Coakley 7592f43dea
fix: smarter AWK detection that supports nawk 6 years ago
Stephen M. Coakley 5943c22650
fix: error with BSD readlink 6 years ago
Stephen M. Coakley 65590470bc fix: #577 add environment sanity checks 7 years ago
Stephen M. Coakley 5eb63f5dfc
Be more careful about restoring backups (fix #509) 7 years ago
Stephen M. Coakley c67aa9e166 Add SHA256 checksum for installer (#504)
* Add SHA256 checksum for installer

* Fix Travis
7 years ago
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
7 years ago
Stephen M. Coakley d951cb1a15 Normalize redirection syntax (#459) 8 years ago
Stephen M. Coakley 9c8d79a347 Do not replace existing theme when installing (#435)
Fix #274
8 years ago
Stephen M. Coakley 6404410be0 Implement update channels to introduce release versioning (#293) 8 years ago
Mathias Djärv 543afc7c01 assert fish version before asserting commands (#399)
* assert fish version before asserting commands

- fix #398 so that the correct error message is displayed

* move assert_cmds to after fish and git checks

- remove fish and git from assert_cmds, these checks are already done in their specific assert_ functions making them redundant in assert_cmds
- move function assert_cmds to match execution order
8 years ago
Stephen M. Coakley 9aae289714 ~ expansion and always setup config in multiple installs (#381) 8 years ago
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
8 years ago
Stephen M. Coakley 228ef9aafe Evaluate OMF_PATH at init time to fix #136 (#348) 8 years ago
Luís Fiolhais 780c833cb4 Inspect $FISH_VERSION variable instead of $version 8 years ago
Stephen M. Coakley c809051edd Bump minimum Fish version in installer (fix #243) 8 years ago
Johnny Robeson e5997f211e Add https:// to curl calls in README and install script 9 years ago
Derek Stavis 433832bb82 install: Remove existing fish_prompt into a backup
First works toward generalizing file backup code, applying to both
config.fish file and now fish_prompt.fish too. This avoids clean
installs which start with theme issues.
9 years ago
Derek Stavis 7feb557569 Remove reload notice from installer script
Also fix a whitespace issue.
9 years ago
Derek Stavis 792e3b7b72 install: Replace source by fish invocation 9 years ago
Derek Stavis 8c394771df install: migrate script from bash to fish
- Checks for a supported fish version (greater than 2.1)
- Migrate travis install script to fish
9 years ago
Derek Stavis c58d14fe3e Move $OMF_CONFIG variable to $OMF_PATH/init.fish
This PR sets the default value of `OMF_CONFIG` variable in
framework init.fish file. The variable can still be overridden by
the user by setting it on `~/.config/fish/config.fish file`.

This is in preparation to rewriting install script in plain fish,
which will ditch config template and stop replacing `config.fish`
contents in favor of just appending Oh My Fish startup.
9 years ago
jeremiejig 56b1d837e0 changing to git -C to git --git-dir work-tree 9 years ago
jeremiejig 9258757901 install script using git -C $OMF_PATH 9 years ago
Bruno Pinto ae0e4388b6 Back to oh-my-fish organization 9 years ago
Bruno Pinto 7dad917436 Make `default` theme the default theme for omf.
* On clean install, configure and download `default` theme.
* Do not allow `default` theme to be removed.
* When the current theme is removed, fallback to `default`.
9 years ago
Derek Stavis 102771b73c install: resolve bundle if existent, otherwise create file 9 years ago
Bruno Pinto f89bc18846 Do not convert `$HOME` when installing omf.
Keep `$HOME` variable inside `config.fish` when installing oh my fish
instead of converting it to its content.
9 years ago
Bruno Pinto 7c5e2b3964 Extracting template to a file and improving it
It's hard to read the template as it was being created using `echo`
instead of being defined on a separate file. Also adding some comments
to improve the configuration file readability.
9 years ago
Harrison Heck e7abc74939 Change github url to current url. 9 years ago
Justin Hileman 0359ba047c Merge `$OMF_CONFIG` and `$OMF_CUSTOM`.
Per conversation with @bpinto in Gitter.

There's no need for two separate directories. You don't have a `.git` and `.git-custom` folder, you just put your config in `.git` :)

The most straightforward interpretation of XDG basedir spec is that user configuration for omf would go in `~/.config/omf`, so let's put it there. The only question is whether omf-generated config (i.e. the `theme` file) should go there as well. By analogy with git, programmatically generated config should probably be merged in with user config. This also makes it so when a user clones their dotfiles to a new machine, both kinds of settings come with it.
9 years ago
Jorge Bucaran 7a7b0ff393 create empty theme config file during install 9 years ago
Jorge Bucaran c855e0024c fix omf new theme and remove default theme 9 years ago
Jorge Bucaran 2693a2fd18 %%% United States of the Fish → Wahoo + OMF %%% 9 years ago