Commit Graph

21 Commits

Author SHA1 Message Date
Justin Hileman
b490fad367 Merge branch 'master' into deprecate-refresh 2016-03-23 08:10:27 -07:00
Derek Stavis
65dfadfc02 lib: deprecate available function
This PR officially marks available as deprecated, moving the
deprecated functionality to omf plugin compat quarantine directory.
2016-03-22 21:48:05 -03:00
Derek Stavis
37705618b2 lib: deprecate refresh function
With great power comes great responsibility. This function is
somewhat low level, and is harmful to shell's user, as it
completely screws up with job control (subprocesses).

This PR officially marks `refresh` as deprecated, moving the
deprecated functionality to omf plugin `compat` quarantine
directory.
2016-03-22 21:35:52 -03:00
Derek Stavis
de0aaeabf7 git_ahead: Fix indicator override 2016-01-21 09:47:11 -02:00
Itzik Ephraim
e83b674fd3 bugfix: git_ahead no longer reports 'none' as 'ahead' 2016-01-19 19:00:21 +02:00
Itzik Ephraim
ec8c209f07 A different approach in git_ahead 2016-01-16 17:30:52 +02:00
Itzik Ephraim
6fa3332438 bugfix: add missing $s in git_ahead 2015-12-31 15:19:06 +02:00
Derek Stavis
042657cdcf require: recursively require package dependencies 2015-11-17 21:07:12 -02:00
Bruno Pinto
5f77a5db12 Remove basename from core library
The features added by this function are not used anywhere.

Fix #151
2015-11-03 14:02:39 +00:00
Derek Stavis
bf44c45cd5 autoload: Use set -e to remove path from destination 2015-11-01 22:43:52 -02:00
Derek Stavis
ecbc9c5ed3 require: Cleanup previously sourced init functions 2015-10-14 21:58:31 -03:00
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.
2015-10-04 15:58:38 -03:00
Bruno Pinto
1ab8a20b8c Fix #8: Fishy plugin template 2015-10-03 22:18:52 +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 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
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
Derek Willian Stavis
2fbd1535f7 lib/README: fix swapped lines
Swap `prompt_segments` and `refresh` description.
2015-09-14 14:06:37 -03:00
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.
2015-09-05 19:20:19 +01:00
Bruno Pinto
ae0e4388b6 Back to oh-my-fish organization 2015-09-03 19:35:19 +01:00
Jorge Bucaran
bf52f5d57a fix basename polyfill 2015-08-27 03:55:16 +09:00
Jorge Bucaran
2693a2fd18 %%% United States of the Fish → Wahoo + OMF %%% 2015-08-27 00:20:13 +09:00