Commit Graph

1476 Commits

Author SHA1 Message Date
Bruno
ee4fc5bb30 Merge pull request #98 from oh-my-fish/missing-redirect
Forgot to suppress error message
2015-10-04 13:53:55 +01:00
Bruno Pinto
653f173971 Forgot to suppress error message 2015-10-04 13:49:58 +01:00
Bruno
436e0306df Merge pull request #97 from oh-my-fish/fishy_uninstall
Fishy packages
2015-10-03 22:40:15 +01:00
Bruno Pinto
1ab8a20b8c Fix #8: Fishy plugin template 2015-10-03 22:18:52 +01:00
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.
2015-10-03 22:11:49 +01:00
Bruno
b4aa5a4408 Merge pull request #96 from derekstavis/update-zn-ch-readme
Update zh-CN readme header
2015-10-03 21:26:07 +01:00
Derek Stavis
472c5e1eaf zh-CN/README: Remove src attribute from spacer 2015-10-03 17:21:16 -03:00
Derek Stavis
b2b46144ad zh-CN/README: Update header badges 2015-10-03 17:21:16 -03:00
Bruno
058a222f24 Merge pull request #91 from oh-my-fish/doctor
omf doctor
2015-10-03 21:16:58 +01:00
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.
2015-10-03 21:04:30 +01:00
Bruno
05f6691479 Merge pull request #95 from derekstavis/readme-remove-reload-message
Remove reload notice from installer script
2015-10-03 20:58:30 +01:00
Derek Stavis
7feb557569 Remove reload notice from installer script
Also fix a whitespace issue.
2015-10-03 16:45:45 -03:00
Bruno
956772daab Merge pull request #88 from derekstavis/refresh-keep-history
Save history before replacing shell process
2015-10-03 15:58:09 +01:00
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.
2015-10-02 21:49:53 -03:00
Bruno
3610868fb3 Merge pull request #94 from oh-my-fish/fix-destroy
Only emit uninstall_* event on `omf destroy`
2015-10-03 01:13:03 +01:00
Bruno Pinto
cf8a24deed Only emit uninstall_* event on omf destroy
When calling `omf destroy`, the `bundle` file is completely erased
because we are calling `remove_package` on each installed package. We
don't want to erase that file, we just want to emit the event and later
on remove the code, which is done with `rm -rf "$OMF_PATH"`.
2015-10-03 01:10:23 +01:00
Bruno
2e5761ab38 Merge pull request #90 from oh-my-fish/commands-organization
Organize commands and remove undocumented aliases
2015-10-03 01:09:56 +01:00
Bruno Pinto
46e4d036ba Organize commands and remove undocumented aliases 2015-10-03 01:07:40 +01:00
Bruno
4446cbc7ee Merge pull request #93 from derekstavis/replace-source-by-fish
install: Replace source by fish invocation
2015-10-03 00:55:56 +01:00
Derek Stavis
792e3b7b72 install: Replace source by fish invocation 2015-10-02 20:50:39 -03:00
Bruno
4c05682af9 Merge pull request #92 from derekstavis/update-install-readme
Update installation script instructions
2015-10-03 00:36:26 +01:00
Derek Stavis
ddafb8c22f Update installation script instructions 2015-10-02 20:35:02 -03:00
Bruno
db1b6887af Merge pull request #82 from derekstavis/install-as-fish
Migrate install script from bash to fish
2015-10-03 00:26:33 +01:00
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
2015-10-02 20:16:04 -03:00
Derek Stavis
0b2a51a93f Get PR URL and Branch using GitHub API 2015-10-02 20:16:04 -03:00
Bruno
e40f2d3ceb Merge pull request #80 from oh-my-fish/dockerize
Dockerize
2015-10-02 23:52:51 +01:00
Bruno Pinto
dde679ff98 Get original repository branch name
Travis does not provide the original repository branch name on any
environment variable. We are getting the information from the GitHub
API instead.

The misleading environment variable `TRAVIS_BRANCH` returns `master`
instead:
> TRAVIS_BRANCH: For builds not triggered by a pull request this is the
name of the branch currently being built; whereas for builds triggered
by a pull request this is the name of the branch targeted by the pull
request (in many cases this will be master).

Reference: http://docs.travis-ci.com/user/environment-variables/
2015-10-02 23:50:18 +01:00
Bruno Pinto
faba765a94 Run tests on an isolated docker environment
- Install fish from dockerfile and generate a docker image.
- Install Oh My Fish! from downloaded git repository and generate a
  docker image.
2015-10-02 23:50:18 +01:00
Bruno Pinto
319c8a05cd Don't overwrite function on test environment
Instead of overwriting functions that use `exec fish` on test
environment, skip this call if the variable `CI` has been defined on the
running shell.
2015-10-02 23:50:18 +01:00
Bruno Pinto
055178bf3d Dockerfile to install fish and test dependencies
This Dockerfile creates an ubuntu machine with fish-shell and the
dependencies we use on our test suite installed.

It does not install Oh My Fish, which one might find weird (I do). Not
confident that this is the best approach, but it's the best I could find
at the moment.
2015-10-02 23:50:18 +01:00
Bruno
e59b75125a Merge pull request #89 from coderstephen/master
Update pkg urls and add weather plugin
2015-10-02 21:56:44 +01:00
Stephen Coakley
53940f5187 Update pkg urls and add weather plugin 2015-10-02 15:54:00 -05:00
Bruno
a1243f659f Merge pull request #83 from oh-my-fish/faster-loading
Faster loading
2015-10-02 21:37:54 +01:00
Bruno Pinto
e2a7f7d229 Split into init.fish and omf.fish files 2015-10-02 21:35:06 +01:00
Bruno Pinto
30ab05445d Add require function to support plugin dep
In order to support dependency between plugins a function called
`require` has been added.
2015-10-02 21:35:06 +01:00
Bruno Pinto
ceb31c143a Source init.fish on each plugin.
Unnecessarily sourcing a `$plugin_name.fish` is affecting the loading
time.
2015-10-02 21:35:05 +01:00
Bruno
2040eedc15 Merge pull request #84 from oh-my-fish/stash-is-bad
Stash does not support --git-dir
2015-10-02 21:34:12 +01:00
Bruno Pinto
9cc8ee5a82 Stash does not support --git-dir
Stash is a shell script that does not support `--git-dir`, not even on
latest versions. We need to use `git -C` which was only added on recent
versions of `git`.

`omf update` will fail in case omf need needs to run `git stash` and
git is not compatible.
2015-10-02 21:16:50 +01:00
Bruno
f0ea67b861 Merge pull request #72 from coderstephen/master
Split custom "init.fish" into clearer "before.init.fish" and "init.fish"
2015-10-02 20:59:45 +01:00
Stephen Coakley
18679d866e Split custom "init.fish" into clearer "before.init.fish" and "init.fish" 2015-10-02 11:33:23 -05:00
Bruno
557b5da03b Merge pull request #85 from chgu82837/pr/add-pastfish-theme
add pastfish theme
2015-10-01 20:36:27 +01:00
PastLeo
32344b305c add pastfish theme and update theme-doc 2015-10-02 03:01:56 +08:00
Bruno Pinto
99be4930bc Merge pull request #39 from icyleaf-feature/i18n-plan 2015-09-29 18:51:22 +01:00
Bruno Pinto
3069368dc5 Remove license from README 2015-09-29 18:50:54 +01:00
icyleaf
639390b203 Added switch language menu 2015-09-29 18:48:12 +01:00
icyleaf
a40f3be16b Split doc file by i18n rule, add zh-CN docs 2015-09-29 18:48:12 +01:00
Bruno
658c8ad50f Merge pull request #79 from derekstavis/omf-config-to-init
Move $OMF_CONFIG variable to $OMF_PATH/init.fish
2015-09-29 16:57:49 +01:00
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.
2015-09-29 09:54:36 -03:00
Bruno
456f6fc4ce Merge pull request #71 from Pyppe/travis-themes-test
Add test-generate-themes-doc.fish
2015-09-28 21:43:52 +01:00
Pyry-Samuli Lahti
c97e1af4bc Add test-generate-themes-doc.fish
* Run with Travis CI, if commits contain changes to `db/themes`
* When run; fail build if `docs/Themes.md` is no longer up-to-date
2015-09-28 23:36:22 +03:00