1
0
Fork 0
mirror of synced 2024-09-20 20:42:53 -04:00
Commit graph

10 commits

Author SHA1 Message Date
Jorrit Visser
b3db9f6719
zsh via package managers / return instead of exit
Installer tries to install zsh if no zsh is detected or if zsh is below 5.2. Currently tries for:
* Brew (Mac)
* apt-get (Debian/Ubuntu)
* dnf (Fedora)
* Pacman (Arch)
Together these should cover about 99% of Zim users.

Also use `return` instead of `exit`, which is a lot nicer to the invoking shell :)
2017-06-30 21:12:57 +02:00
Jorrit Visser
e118bab814
Style fixes, git clone no longer done in script
* No longer close every line with `;`
* Reduce amount of variables by doing the magic inside `[ ]`
* Variables all in lowercase since all created inside subshell
* Attempt to install `zsh` via `homebrew` if zsh doesn't exist on the system
* Fix some typos
2017-05-29 17:29:16 +02:00
Jorrit Visser
f818b1c787 bringup of install script
Basically what it says. This is an install script that can get called via shell (and we can curl it!).
A few niceties:

* Error handling for various problems
* Checks if other frameworks are installed, and backs them up
* Changes shell to zsh, without sudo

Its the oh-my-zsh installer, but very heavily modified. I wrote my own installer at first, but decided that reinventing the wheel was stupid.

There is one modification: Zim's template files are no longer prepended to .zshrc and .zlogin, but instead, .zshrc and .zlogin are backed up. During the writing and testing of the script I've had the prepending command mess up and paste the template lines in the middle of other lines in my .zshrc, multiple times. You simply don't want to risk that.
2017-05-20 17:29:11 +02:00
Matt Hamilton
2c0cc6fbd7 [tools] zmanage update: track submodules
This change causes `zmanage update` to track the submodules as described
in origin/master, not from their upstream (dirty) states. Users wishing
to "revert" this change on occasion to test some upstream submodule
features, do: `cd ~/.zim && gSu`, assuming you have the git aliases.
This will pull the upstream modules to their latest state, leaving a
dirty HEAD state with these untracked modules. `cd ~/.zim && gSI` to
revert.

Closes #127
2017-01-21 08:25:30 -08:00
Eric Nielsen
695d46284c [meta] use uname -a to prevent OS conflicts
Fix `uname` calls with `-o` parameter, as this is not BSD compatible.
As per @Eriner, use `uname -a` instead as a "catch-all" parameter.

Fixes #75, Closes #79
2016-09-28 03:02:10 -07:00
Eric Nielsen
58aae6a896 [meta] update: Pull latest submodule commit
Instead of using `git submodule update`, that will keep the commit
specified in the containing repository index.

Closes #80
2016-09-27 15:59:58 -07:00
Matt Hamilton
071ddaf0ac [meta] zim_issue now recommends debug logs 2016-09-06 13:10:47 -07:00
Matt Hamilton
d55939e528 [meta] add zim_issue template builder 2016-09-05 16:34:27 -07:00
Matt Hamilton
f7d3cdf812 [meta] add module and fixup tools 2016-09-02 18:28:29 -07:00
Matt Hamilton
b7bc7bb69e [tools] initial commit 2016-09-02 17:46:11 -07:00