nicolashery / mac-dev-setup Goto Github PK
View Code? Open in Web Editor NEWA beginner's guide to setting up a development environment on macOS
A beginner's guide to setting up a development environment on macOS
I think this is a must for node dev https://github.com/creationix/nvm
MacDown: MacDown allows you to edit Markdown with live rendering, custom styling (Github rendering supported), and is super fast. 100% Free
Under ElasticSearch, this statement is no longer valid:
Start a local elasticsearch server with:
$ elasticsearch -f
(The -f option tells it to run in the foreground, so you can stop it with Ctrl+C.)
Per elasticsearch documentation, looks like the -f switch is no longer needed to run in the foreground.
This is a great alternative to Chrome with a focus on privacy and in this dev setup we should let folks choose between the Chromium browser of their choice: Google Chrome or Brave
--tmpdir appears to no longer be an argument for the mysql_install_db command. This causes the command to fail.
Oh my zsh on macos has some pretty handy features, especially for git integration. Thoughts?
The default settings compiled in mongodb on osx will try to read/write to /data/db
, which is a directory it won't have access to.
It's possibly best advised for folks to start mongodb (and redis, and other things) via brew services start mongodb
I think the preferred way to install numpy and scipy is now via Homebrew's own Python formulae:
$ brew install homebrew/python/numpy
$ brew install homebrew/python/scipy
It's no longer necessary install gcc
either (and doing so will lead to the issue described here). Happy to submit a PR if you agree.
The java installation method mentioned is not working anymore.
brew cask install homebrew/cask-versions/java8
You can refer to the given stackoverflow answer to find a proper way to solve the issue.
See: Homebrew/legacy-homebrew@49d04cb
This results in an unnecessary warning in brew doctor
:
Warning: /usr/local/share/python is not needed in PATH.
So, in Python section, the following needs some revision:
Executable scripts from Python packages you install will be put in /usr/local/share/python, so let's add it to the $PATH. To do so, we'll create a .path text file in the home directory (I've already set up .bash_profile to call this file):
$ cd ~
$ subl .path
And add these lines to .path:
PATH=/usr/local/share/python:$PATH
export PATH
Save the file and open a new terminal to take the new $PATH into account (everytime you open a terminal, .bash_profile gets loaded).
This repo is really helpful. It would be nice to add docker installation instructions too.
see: https://gist.github.com/1195304 and the third post on http://www.sublimetext.com/forum/viewtopic.php?f=2&t=9103
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
also huge thanks for this tutorial it really is great!
xcode-select --install
much easier than the questionaire/apple website approach. Thanks for the guide, love it!
Hi, I followed the instructions to add Atom colors to iTerm.
However, when I open a new terminal window (or close and re-open iTerm) no colors shows up when running ls or similar command.
Am I missing anything?
In the Virtualenv section, the option "--distribute" has gone obsolete and has no real effect as for version 16.3.0. See source code in virtualenv.py.
I Like to use this app to modify the resolution of the MB
modify the instruction to:
brew install pyqt5
Hi Nicholas,
Thanks for the awesome work of compiling the list together. It is a very helpful list to go through for a beginner. As I am following your steps, I noticed that when I download the .bash_profile, .bash_prompt, and .aliases using the curl command, they do that contain the RAW files instead, the files are a HTML redirect page for Github.
Thought you might want to know and to update the Readme with new links.
Best,
Allen
Hey,
If I ssh into my ubuntu server, I loose all the styling.
How can I fix that?
Keep all settings backup and in sync.
For more information: https://github.com/lra/mackup
I'm experiencing some trouble with the shell scripts. To start, I am on macOS Big Sur (Version 11.0.1). With this, I put the code from .bash_profile
in .zshrc
. When I open a terminal, it loads the below line (from .bash_prompt
) and I seem to be unable to remove it.
\[\]\[\]\w\[\]$([[ -n $(git branch 2> /dev/null) ]] && echo " on ")\[\]$(parse_git_branch)\[\]\n$ \[\]
Hey Nicolas,
I don't know if this was intentional or not but in the 2.0 version you have some dotfiles but in the README.md file you have the file paths to the master versions. I know there are some differences. Just wanted to let you know.
If it wasn't intentional I can submit a pull request and fix it for you. I'm trying to contribute more on Github.
This is incredibly useful for installing packages in Sublime Text (2 and 3), and should be included: https://packagecontrol.io/
Hi @nicolashery
Are you interested to list virtualenv-mgr in your document? virtualenv-mgr was build to manage (diff, update, statistics, find env with packages, ..) multiple envs in parallel. This saves a lot of time for example to upgrade all envs to the latest version of a specific package.
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
install powerline fonts: pip install powerline
add theme in iterm2 https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized
change theme in iterm2
in ~/.zshrc change ZSH_THEME to ZSH_THEME="agnoster"
I couldn't use my mac without this. worth adding to this list.
brew install go
brew install mercurial
Ref: How to Write Go code
ipython[test] depends on ... depends on nose
nose produces an exception and stack trace when pip tries to install it, due to /usr/local/man not existing and /usr/local/ not being writable by the user
I don't think any layer of this problem will want to fix it. The homebrew install devs already said they won't fix homebrew to link /usr/local/man to /usr/local/share/man so that FHS-compliance-expecting pip packages will install cleanly. python and pip aren't doing anything wrong by respecting where nose says it wants to install its man pages. and nose isn't doing anything wrong by trying to install its man pages to a location the FHS says should exist.
You should probably just mention in your ipython section that there is a known exception/error during the process. Or maybe not install the [test] feature?
Any particular reason why PostgreSQL is not included in the tutorial?
Seems weird to not have it next to Ruby and Heroku.
I see that you removed CONSOLAS from the 2.0 version. I know that it doesn't work but I got it to work by just running open CONSOLA*.TTF twice. I hit enter, then Import Font, then immediately go back the the terminal and hit the up arrow and do it again. The second time I get a message saying there were minor issues but it still all works.
Just wondering.
I followed your instructions to download the Solarized color palette for iTerm2, but when I opened iTerm's preferences to import the file, I saw Solarized Dark and Solarized Light are now built-in. Maybe modify your instructions to remove the step of downloading Solarized?
Thanks for writing the guide!
via https://docs.brew.sh/Installation
This script installs Homebrew to its preferred prefix (/usr/local for macOS Intel, /opt/homebrew for Apple Silicon)
Depending on the intent of this repo, might be worth updating with a caveat in the homebrew section during the transition into Apple Silicon chips
By default, the elastic search plugin program is now called elasticsearch-plugin,
The install flag is removed in favour of an argument ('install' instead of '--install')
And the recommended plugin (elasticsearch-plugin --install mobz/elasticsearch-head) no longer exists/installs correctly
Hope this helps!
For those users who are installing iTerm2 per the instructions.
Users can switch back to bash
(which will use the .bash_profile file from this repo) with this command:
chsh -s /bin/bash
I had to run source ~/.bash_profile to see the color changes in my terminal, which should probably be included in the instructions.
In README.md add command in section ## System update:
softwareupdate -ia --restart
virtualenvwrapper is a popular package and is often used with Python development. I'm willing to add a section on it.
Lots of items has been overdue.
I followed the instructions to install MySQL:
brew install mysql
... it went through a lot of status reporting on the install...
Then it paused for a while on ...
==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.11.3 --no-system-libs --parallel=4 --datadir=/share/cmake --docdir=/share/
mysql.server start
Then it gave me back my command line.
But, when I test out with mysql.server start
, it reports mysql.server: command not found
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.