My note on setting up my Mac for software development.
Feel free to google the suggestions and choose your preferred setup.
My note on setting up my Mac for software development.
Feel free to google the suggestions and choose your preferred setup.
Edit the config file:
code ~/.zshrc
See alias e.g. git: g for git g, ga for git add etc
Syntax highlighting: zsh-osx-syntax-highlighting
Autocompletion: zhs-autosuggestions
alias hostfile="sudo code /etc/hosts"
alias server="php -S localhost:8888"
alias publickey="pbcopy < ~/.ssh/id_rsa.pub"
# Laravel
alias a="php artisan"
alias tinker="php artisan tinker"
alias mfs="php artisan migrate:fresh --seed"
alias phpunit="vendor/bin/phpunit"
alias pest="vendor/bin/pest"
alias vapor="vendor/bin/vapor"
# Git
alias nah="git reset --hard && git clean -df"
alias gs="git status"
alias ga="git add -A"
alias gc="git commit"
alias gp="git push origin master"
alias gl="git log -- graph ... google it!!"
# Composer
ali as cu="composer update"
alias cda="composer dump-autoload"
# Filesystem
alias o="open ."
alias c="code ."
# Paths (for composer and laravel )
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
To check if an app is installed
e.g. vs code
which code
Follow the instructions on code on how to add code to the PATH
To suppress the last login info when opening a file:
touch ~/.hushlogin
See the brew homepage to install
brew install [email protected]
PHP packages, view the installed packages:
pecl list
Install:
pecl install xdebug
See homepage and follow instructions
Copy to /usr/local.bin/composer
Follow instructions on Laravel page install laravel globally
Follow the instructions to install, including valet park
brew install mysql
See BDngin for all-in-one database version management tool
Follow instruction on node.js.org page
Can be installed using brew.
delete a file or folder safely
auto create a github project based on the local git repo.
git init
ga
gc -m "initial commit"
hub create -p
gp
Install using brew brew install git
Configure global settings
git config --global --edit
Add name, email and global excludesfile = /Users/dre/.gitignore
Open source tunnel app
Useful for testing webhooks and APIs on mobile
Install following the instructions
Theme: Community Material Theme Icons: Material Icon Theme
..etc..
Boost your design skills instantly for free with Raycast - YouTube by A Better Computer
Get Raycast