This my personal development MacOS environment. It contains a type of software and custom improvements.
Terminal
Searching (Spotlight alt)
Editor (Simple)
Editor
Database
PostgreSQL Tools
Browser
HTTP Request Client
Design Tool
Window Manager for Mac
Maintance & Tune
Advanced Settings
File Archiver
Screen Recorder
Advanced clipboard
Brew (Homebrew)
Package Manager
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Zsh is a shell designed for interactive use, although it is also a powerful scripting language.
brew install zsh
chsh -s /bin/zsh
# Testig the active SHELL
echo $SHELLOh My Zsh is an open source, community-driven framework for managing your zsh configuration.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Disable Last login line
touch .hushloginA fast reimplementation of Powerlevel9k ZSH theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10kSet ZSH_THEME=powerlevel10k/powerlevel10k in your ~/.zshrc.
Fish-like autosuggestions for zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsAdd zsh-autosuggestions to plugins variable in your ~/.zshrc.
Fish shell like syntax highlighting for Zsh
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingAdd zsh-syntax-highlighting to plugins variable in your ~/.zshrc.
General-purpose scripting language
Add brew to plugins variable in your ~/.zshrc.
Then try to test brew status by running brew doctor command.
brew install phpA Dependency Manager for PHP
brew install composerAdd composer to plugins variable in your ~/.zshrc.
Platform built on V8 to build network applications
brew install nodeI prefer install to LTS version (12.x)
brew install node@12
brew link --force --overwrite node@12
# Manual way
cd /usr/local/bin
ln -s ../Cellar/node@12/12.14.0/bin/node node
ln -s ../Cellar/node@12/12.14.0/bin/npm npm
ln -s ../Cellar/node@12/12.14.0/bin/npx npx
# Testing
node -v
npm -vFast, reliable, and secure dependency management.
brew install yarnAdd yarn to plugins variable in your ~/.zshrc.
nginx - Optional
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
brew install nginxEdit plugins line in your .zshrc file
plugins=(git brew composer yarn sublime laravel5 sudo zsh-autosuggestions zsh-syntax-highlighting)
The PHP Framework for Web Artisans
composer global require laravel/installerPersistent key-value database, with built-in net interface
brew install redisIf you gives error, you should correct extension_dir variable in your php.ini file or you should create directory which is like /usr/local/Cellar/php/7.4.1/pecl/20190902.
Warning
pecl may added a extension="redis.so" line to php.ini file. You should remoe this line.
Create a file which is /usr/local/etc/php/7.4/conf.d/ext-xdebug.ini
extension="redis.so"
pecl install redisbrew tap kabel/php-ext
brew install php-imapAfter imap installation, your php cli can be slow. You can solve this problem by this solution.
- You need your machine hostname then you need to copy that. For example, it return
Anlcans-Airin my computer.
hostname- You need to edit your
/etc/hostsfile and you need to paste yourhostnamewith.localpostfix for127.0.0.1and::1ip addresses. For example,
127.0.0.1 localhost Anlcans-MacBook-Air.local
::1 localhost Anlcans-MacBook-Air.local
pecl install xdebugWarning
pecl may added a zend_zend_extension="xdebug.so" line to php.ini file. You should remoe this line.
Create a file which is /usr/local/etc/php/7.4/conf.d/ext-xdebug.ini
[xdebug]
zend_extension="xdebug.so"
xdebug.remote_enable=1
xdebug.remote_port="9000"
xdebug.idekey="PHPSTORM"
In PhpStorm Settings should be
Preferences | Languages & Frameworks | PHP | Debug
Xdebug
Debug Port: 9000
Can accept external connections: yes
Force break at first line when no path mapping specified: yes
Force break at first line when a scipt is outside the project: yes
Then, you should install Browser Debugging Extensions for your browser. For chrome, you can use Xdebug helper extension.
Coming soon.