Skip to content

rozsival/dotfiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

833 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vít’s dotfiles

MacOS dotfiles with sensible web development setup.

Installation

Download

cd; curl -#L https://github.com/rozsival/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}

Disable csrutil

When setting up a new Mac (or clean install) reboot in Recovery Mode, open Terminal and run:

csrutil disable

Reboot back to OS.

Sensible Mac OS defaults

source .macos

Enable csrutil again

Reboot in Recovery Mode and run this in Terminal:

csrutil enable

Reboot back to OS.

Install build tools

xcode-select --install

Install brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
source brew.sh

Setup development environment

Node.js

source node.sh

PHP

Follow this awesome manual. Parts with $PATH setup can be skipped, everything is set in .path.

⚠️ Apache configuration should prefer php-fpm over mod_php.

LoadModule proxy_module lib/httpd/modules/mod_proxy.so
LoadModule proxy_fcgi_module lib/httpd/modules/mod_proxy_fcgi.so

<IfModule proxy_fcgi_module>
    <VirtualHost *:*>
        ProxyPassMatch "^/(.*\.php(/.*)?)$" "fcgi://127.0.0.1:9000/<$serverRoot>/$1"
    </VirtualHost>
    <FilesMatch \.php$>
        SetHandler "proxy:fcgi://127.0.0.1:9000"
    </FilesMatch>
</IfModule>

About

🔧 .files, including ~/.macos — sensible development defaults for macOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 53.2%
  • Vim Script 46.8%