Commit Graph

1412 Commits (680a5dc4f344cab019e76783458861d65754d67a)
 

Author SHA1 Message Date
Bruno 3aad380079 Merge pull request #121 from derekstavis/merge-theme-and-install
Overhaul install and update code
9 years ago
Pablo Santiago Blum de Aguiar 2ac04c7e5e omf.packages.list: list no “builtin” packages 9 years ago
Derek Stavis ccd704bca0 omf.theme: Validate if theme is installed 9 years ago
Derek Stavis 7ccdada8c6 omf install: Don't refresh when nothing installed 9 years ago
Bruno Pinto e234aab3c6 Remove .git$ from name when installing from URL
Support `omf install https://github.com/oh-my-fish/plugin-jump.git`
9 years ago
Bruno Pinto cc7b321268 Create `omf.update` function
Update and install were one thing before.
9 years ago
Bruno Pinto c346731743 Simplify install command
- Install does not do update.
- Share code when installing from URL or name.
9 years ago
Bruno 2f3a8cdfd8 Merge pull request #111 from iax7/master
Add jump plugin repo
9 years ago
Justin Hileman e2d0455b28 Merge pull request #118 from derekstavis/omf-list-installed-wrapper
Fixes a regression in update process added in #115
9 years ago
Derek Stavis 67c07cb6f6 Fixes a regression in update process added in #115
As #115 migrated list functions, after updating Oh My Fish code
the omf.list_installed_packages gets removed, but is still being
used by the update code.

This commit fixes it by providing a wrapper function.
9 years ago
Isaias Pina 36cdac9f74 Add jump plugin repo 9 years ago
Bruno 9539b50da2 Merge pull request #115 from oh-my-fish/omf-list-rewritten
Merge all omf list functions
9 years ago
Bruno Pinto 870efd0dda Merge all omf list functions 9 years ago
Bruno dc8ec2ec1d Merge pull request #114 from oh-my-fish/omf-cd-namespaced
Simplify `omf cd` code
9 years ago
Bruno Pinto 7025525ef1 Simplify `omf cd` code
This also namespace the function to `omf.packages`.
9 years ago
Bruno 394ca55d1b Merge pull request #113 from scorphus/plugin-thefuck
refact(pkg/thefuck): use a better, oh-my-fishy thefuck plugin
9 years ago
Pablo Santiago Blum de Aguiar f922cd88ee refact(pkg/thefuck): use a better, oh-my-fishy thefuck plugin 9 years ago
Bruno 4c8f84e608 Merge pull request #112 from nwykes/master
update some cli completions: remove query and version. add doctor
9 years ago
nwykes ffa6338664 update some cli completions: remove query and version. add doctor 9 years ago
Bruno 27af4e366c Merge pull request #102 from derekstavis/omf-theme-no-refresh
Rework omf theme code: Integrate with fish_config, ditch refresh calls
9 years ago
Derek Stavis ea0b464f1d omf.theme: Rework theme activation code
- Move theme installation to cli entry point (omf.fish)
- Generalize XDG_CONFIG_HOME code in `omf.xdg.config_home`
- Generalize prompt conflicts check in `omf.checks.fish_prompt`
  * Migrate `omf.doctor` to use it

+ Change theme activation steps
  - Create user function path if not existent
  - Check for conflicts in fish_prompt, aborts if found
  - Remove current theme from autoloading paths
  - Add target theme to autoloading paths
  - Link target theme's fish_prompt to user's
  - Persist selected theme to $OMF_CONFIG/theme

This approach brings two major advantages:

- Theme prompt now shows accordingly in fish_config web interface
- Faster theme changes, reducing it from seconds to some milis
- Avoids calling refresh, which makes users much more happy
9 years ago
Derek Stavis a99e3ce86a omf.install: Fix success/error return codes
Return 0 when package installs, != 0 on error
9 years ago
Bruno 284b318cb8 Merge pull request #110 from derekstavis/fix-bundle-add
bundle.add: fix theme being persisted twice
9 years ago
Derek Stavis 291d0c9784 bundle.add: fix theme being persisted twice
`omf theme` was persisting the installed theme twice, one time on
`omf.install` and other time on `omf.bundle.add`.
9 years ago
Bruno 3c5406ab35 Merge pull request #109 from oh-my-fish/move-vi-mode-back-to-omf
Bring plugin back to oh my fish organization
9 years ago
Bruno Pinto 2fa0f73c7b Bring plugin back to oh my fish organization 9 years ago
Bruno 973893e73f Merge pull request #86 from mquinnv/master
Convert plugin to new OMF architecture
9 years ago
Michael Ventura 06c452ac75 Update db with converted git-flow plugin 9 years ago
Michael Ventura ea214c10fd Update db with converted vi-mode plugin 9 years ago
Bruno 169498efdf Merge pull request #108 from oh-my-fish/bpinto-patch-1
Fix broken documentation link
9 years ago
Bruno 8f63330269 Fix broken documentation link
Fix #101
9 years ago
Bruno c67b0314c2 Merge pull request #100 from derekstavis/install-remove-fish-prompt
install: Remove existing fish_prompt by backuping
9 years ago
Derek Stavis 05f3be01be destroy: Revert fish_prompt backup when found
Works toward generalizing the backup restoration logic using a
function, then restoring both config.fish and fish_prompt.
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
Bruno beca6512e1 Merge pull request #99 from derekstavis/remove-from-autoload
Implement `autoload -e` option to remove from autoload paths
9 years ago
Derek Stavis ebd7192cd1 Implement `autoload -e` to remove autoload path
Address the use case of autoload path removal, which allows themes
and packages definitions to be unloaded from running fish session.
9 years ago
Bruno ee4fc5bb30 Merge pull request #98 from oh-my-fish/missing-redirect
Forgot to suppress error message
9 years ago
Bruno Pinto 653f173971 Forgot to suppress error message 9 years ago
Bruno 436e0306df Merge pull request #97 from oh-my-fish/fishy_uninstall
Fishy packages
9 years ago
Bruno Pinto 1ab8a20b8c Fix #8: Fishy plugin template 9 years ago
Bruno Pinto 520d597947 Source `uninstall.fish` file before emitting event
Instead of having every plugin function inside the same file, which
increases the loading time unnecessarily and is not fishy, source the
`uninstall.fish` file for the plugin before the `uninstall_$plugin_name`
event is emitted.
9 years ago
Bruno b4aa5a4408 Merge pull request #96 from derekstavis/update-zn-ch-readme
Update zh-CN readme header
9 years ago
Derek Stavis 472c5e1eaf zh-CN/README: Remove src attribute from spacer 9 years ago
Derek Stavis b2b46144ad zh-CN/README: Update header badges 9 years ago
Bruno 058a222f24 Merge pull request #91 from oh-my-fish/doctor
omf doctor
9 years ago
Bruno Pinto bc0d4847e8 Resolve #30: omf doctor command
In order to pro-actively diagnose an issue on someone's computer, a
`omf doctor' command is being added. This command will initially check
errors that could cause a theme to not be loaded, but in the future more
checks are going to be added to prevent issues from being created for
problems that are fixable by the Oh My Fish user alone.
9 years ago
Bruno 05f6691479 Merge pull request #95 from derekstavis/readme-remove-reload-message
Remove reload notice from installer script
9 years ago
Derek Stavis 7feb557569 Remove reload notice from installer script
Also fix a whitespace issue.
9 years ago
Bruno 956772daab Merge pull request #88 from derekstavis/refresh-keep-history
Save history before replacing shell process
9 years ago
Derek Stavis 8b8a7c8d73 Save history before replacing shell process
Fixes an issue with history between shell reloads via refresh function call.
As `exec` replaces the current process in a non-gently fashion, the
persistent history could be out of sync with the in-memory history.

Calling `history --save` before `exec` should force the shell to persist the
history before replacing the current process.
9 years ago