stevendesu / environment

My personal working environment
1 stars 0 forks source link

Mac OS X support #1

Open stevendesu opened 5 years ago

stevendesu commented 5 years ago

Eventually the shell setup.sh script should super-intelligently determine the machine it's running on and support all sorts of devices and operating systems... In an ideal world

But obviously the world isn't ideal. I just used Ubuntu for ages and that's all I needed

Now I need to install this on Mac OS X. So let's get it working.

Current output:

Stevens-MacBook-Pro:environment stevenbarnett$ ./setup.sh 
Preparing environment repo...
Submodule '.zprezto' (https://github.com/stevendesu/prezto.git) registered for path '.zprezto'
Cloning into '/Users/stevenbarnett/environment/.zprezto'...
Submodule 'modules/autosuggestions/external' (https://github.com/tarruda/zsh-autosuggestions) registered for path '.zprezto/modules/autosuggestions/external'
Submodule 'modules/completion/external' (https://github.com/zsh-users/zsh-completions.git) registered for path '.zprezto/modules/completion/external'
Submodule 'modules/history-substring-search/external' (https://github.com/zsh-users/zsh-history-substring-search.git) registered for path '.zprezto/modules/history-substring-search/external'
Submodule 'modules/prompt/external/agnoster' (https://github.com/agnoster/agnoster-zsh-theme.git) registered for path '.zprezto/modules/prompt/external/agnoster'
Submodule 'modules/prompt/external/powerline' (https://github.com/davidjrice/prezto_powerline.git) registered for path '.zprezto/modules/prompt/external/powerline'
Submodule 'modules/prompt/functions/pure' (https://github.com/sindresorhus/pure.git) registered for path '.zprezto/modules/prompt/external/pure'
Submodule 'modules/syntax-highlighting/external' (https://github.com/zsh-users/zsh-syntax-highlighting.git) registered for path '.zprezto/modules/syntax-highlighting/external'
Cloning into '/Users/stevenbarnett/environment/.zprezto/modules/autosuggestions/external'...
Cloning into '/Users/stevenbarnett/environment/.zprezto/modules/completion/external'...
Cloning into '/Users/stevenbarnett/environment/.zprezto/modules/history-substring-search/external'...
Cloning into '/Users/stevenbarnett/environment/.zprezto/modules/prompt/external/agnoster'...
Cloning into '/Users/stevenbarnett/environment/.zprezto/modules/prompt/external/powerline'...
Cloning into '/Users/stevenbarnett/environment/.zprezto/modules/prompt/external/pure'...
Cloning into '/Users/stevenbarnett/environment/.zprezto/modules/syntax-highlighting/external'...
Installing zsh...
Password:
sudo: apt-get: command not found
Configuring zsh...
Changing shell for stevenbarnett.
Password for stevenbarnett: 
Installing tmux...
sudo: apt-get: command not found
Installing neovim...
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: apt-get: command not found
sudo: npm: command not found
sudo: apt-get: command not found
sudo: pip: command not found
Configuring neovim...
sudo: update-alternatives: command not found
sudo: update-alternatives: command not found
sudo: update-alternatives: command not found
Stevens-MacBook-Pro:environment stevenbarnett$ 

The issue will mostly revolve around replacing "apt-get" with "brew", I believe. Although it wouldn't hurt to double-check that there isn't a Mac-specific way to install NodeJS or Python.

stevendesu commented 5 years ago

Command for installing Brew (according to their website):

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

I guess Mac comes pre-installed with Ruby? But not Python?

Actually just double-checked and it comes with Python 2.7.10, so not sure why pip wasn't found. I guess Python doesn't necessarily imply pip.