zero-sh / zero.sh Goto Github PK
View Code? Open in Web Editor NEWRadically simple personal bootstrapping tool for macOS.
License: MIT License
Radically simple personal bootstrapping tool for macOS.
License: MIT License
For example:
zero/setup --defaults
zero/setup --symlinks
zero/setup --scripts
Hi there !
I love the tool and use it as a setup as code for my macs.
I would like to know if there is any possibility to delete missing brew items from the mac if there are not in the Brewfile anymore ?
Thanks for the work !
When running setup stow fails to overwrite already existing symlinks. Also if file already exists in home directory stow will fail to create new symlink from .dotfiles folder. Application should perform force update on existing symlinks and ask user if he wants to remove or adopt file (see stow --adopt
).
Hey there, I own and I'm about to launch my startup called Zero.sh. Why this project uses this domain if you don't own it? Isn't it confusing for both my clients & your users?
Costantin
Hi,
I was testing your tool and I got stuck on software update for macOS. It seems that zero is not correctly prompting for credentials to install the update on non-root shell. If executed with sudo zero setup -d <dotfiles>
it works correctly.
Log
zero setup
Software Update Tool
Finding available software
Software Update found the following new or updated software:
* Label: macOS Catalina 10.15.4 Update-
Install system updates? This will restart your machine if necessary. [Y/n]: y
^C
Password:
sudo: unable to read password: Input/output error
The documentation and setup script install the brew named "zero-sh" but it's simply zero
.
Some of my scripts were created as text files by accident. Obviously it makes sense to fail somehow in this case, but the error is fairly cryptic.
~ chmod -x ~/.dotfiles/run/before/000-no-escape.sh
~ zero run-scripts
==> Running scripts in run/before
==> ./000-no-escape.sh
2020-04-10 15:41:12.454 zero[1669:33328] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2edced07 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff679595bf objc_exception_throw + 48
2 Foundation 0x00007fff3148b06d -[NSConcreteTask launchWithDictionary:error:] + 5229
3 zero 0x000000010c7e4810 zero + 292880
4 zero 0x000000010c7e4ca8 zero + 294056
5 zero 0x000000010c7f3a5b zero + 354907
6 zero 0x000000010c7f0275 zero + 340597
7 zero 0x000000010c7efd68 zero + 339304
8 zero 0x000000010c7f0549 zero + 341321
9 zero 0x000000010c7b9648 zero + 116296
10 zero 0x000000010c7b91cb zero + 115147
11 zero 0x000000010c7b9159 zero + 115033
12 zero 0x000000010c7f5034 zero + 360500
13 libdyld.dylib 0x00007fff68b00cc9 start + 1
14 ??? 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
fish: 'zero run-scripts' terminated by signal SIGABRT (Abort)
~
Related to #5... the setup script reference was not updated so the setup script fails to install zero.
Installing Zero...
Updating Homebrew...
Error: No available formula with the name "zero-sh/tap/zero-sh"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Hey, thanks for putting this together! I was running it on an older device and brew bundle
seemed to be hanging/frozen, when in fact it was just taking a while to install Python. I would find it useful to have a verbose flag for Zero (i.e. how brew bundle -v
works) to monitor the status of commands in detail as well as run sub-commands(?) in verbose mode. Something like zero setup -v
would run brew bundle -v
once it got to the bundle step. There may be other cases where verbosity could be useful, but I haven't looked around too much yet.
Hello.
I am experiencing a freeze for zero setup [env]
at the step of brew installing programmes from Brewfile, specifically brew [something]
lines (everything seems ok with cask [something]
lines).
I've tried installing directly with brew bundle --file path/to/Brewfile
and it's working with no problems, so I think it could be something with the way zero runs brew bundle.
Would appreciate any help, thanks.
Documented as defaults.yml
, but the code actually looks for defaults.yaml
You mention "The following dependencies are required & installed when building the brew formula:", but that doesn't seem to be true at the moment
Perhaps worth adding here: https://github.com/zero-sh/homebrew-tap/blob/master/Formula/zero.rb
When I update a cask that requires a password, like google chrome, the update just stalls.
Also it would be nice to be able to turn off the new feature to update all casks even those who have auto update turned on.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.