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

3 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