Commit Graph

13 Commits (de84c9d4fbac7933f4c923e3a5b277f8a1638595)

Author SHA1 Message Date
Bruno Pinto 30ab05445d Add `require` function to support plugin dep
In order to support dependency between plugins a function called
`require` has been added.
9 years ago
Bruno Pinto ceb31c143a Source `init.fish` on each plugin.
Unnecessarily sourcing a `$plugin_name.fish` is affecting the loading
time.
9 years ago
Stephen Coakley 18679d866e Split custom "init.fish" into clearer "before.init.fish" and "init.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
Bruno Pinto b36bc03eb0 Remove global OSTYPE variable. 9 years ago
Bruno Pinto 2ac89b5a1c Rename RESET_PATH to ORIGINAL_PATH
This variable records the value of $PATH environment variable before
oh-my-fish is sourced. When we "reload" the framework, we reset $PATH
with this recorded value so that we boot from a clean state.
9 years ago
Bruno Pinto 8aa6bf7ee2 Remove unnecessary code
This was actually trying to load PATHs that do not exist under $OMF_CONFIG
directory and sourcing files that did not exist.
9 years ago
Bruno Pinto 8aa60c55ae Do not source `events.fish`
We don't use it for anything.
9 years ago
Bruno Pinto ae0e4388b6 Back to oh-my-fish organization 9 years ago
Jorge Bucaran 84872300df refactor botched source calls with ^/dev/null 9 years ago
Harrison Heck 7d47220770 Add checks to see if file exists before source.
Fixes #524.
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 2693a2fd18 %%% United States of the Fish → Wahoo + OMF %%% 9 years ago