-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor installer to support offline installs and more control over user data #361
Conversation
53e7057
to
b007f56
Compare
|
||
return (test $major = $OMF_FISH_MIN_VER[1] -a $minor -ge $OMF_FISH_MIN_VER[2]) | ||
# Add an exit hook to display a message if the installer aborts or errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool idea!
188ae12
to
59794bd
Compare
What about using |
Still missing is the uninstall method compatible with fish 2.3. |
59794bd
to
82e659b
Compare
@derekstavis Good suggestions. I just pushed an update that includes/fixes all of them! 👍 |
|
||
set -q CI; or exec fish < /dev/tty | ||
# Start a new OMF-free shell | ||
exec fish < /dev/tty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this cause an issue with Travis?
d025fec
to
0af1a01
Compare
is_install_dir "$OMF_PATH" | ||
or abort "No installation detected at $OMF_PATH" | ||
|
||
say "Warning: This will uninstall Oh My Fish and all plugins and themes installed in $OMF_PATH. Your configuration will not be modified. You will need to remove any Oh My Fish startup code from $FISH_CONFIG/config.fish." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could add some space between the messages:
Warning: This will uninstall Oh My Fish and all plugins and
themes installed in /Users/derek/.local/share/omf.
Your configuration will not be modified. You will need to remove any
Oh My Fish startup code from /Users/derek/.config/fish/config.fish.
And also use bold in the last paragraph
0af1a01
to
dee2ae9
Compare
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
33647ef
to
00b6931
Compare
Completely refactors the installer. The code is more organized and should be more reliable and consistent.
The new installer supports:
config.fish
is no longer required for Fish 2.3.0+, usesconf.d
instead