Last active
March 30, 2023 03:20
-
-
Save nissicreative/a53181148e3374993b28b844be8fb5db to your computer and use it in GitHub Desktop.
~/.oh-my-zsh/custom/aliases.zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################### | |
# ALIASES | |
#################### | |
alias cpwd="pwd | tr -d '\n' | pbcopy && echo 'Current working directory copied to clipboard.'" | |
alias flushdns="sudo killall -HUP mDNSResponder" | |
alias dskill="find . -name '*.DS_Store' -type f -delete" | |
alias dockspacer="defaults write com.apple.dock persistent-apps -array-add '{tile-type=\"spacer-tile\"}' && killall Dock" | |
# PHP | |
alias p="phpunit" | |
alias cr="COMPOSER_MEMORY_LIMIT=-1 composer require" | |
alias ci="COMPOSER_MEMORY_LIMIT=-1 composer install" | |
alias cu="COMPOSER_MEMORY_LIMIT=-1 composer update" | |
alias cgu="COMPOSER_MEMORY_LIMIT=-1 composer global update" | |
alias cda="composer dump-autoload" | |
alias a="php artisan" | |
alias aoc="php artisan optimize:clear" | |
alias avp="php artisan vendor:publish" | |
alias mfs="php artisan migrate:fresh --seed" | |
alias pest="./vendor/bin/pest" | |
# NPM | |
alias nrw="npm run watch" | |
alias nrd="npm run dev" | |
alias nrp="npm run prod" | |
alias nrb="npm run build" | |
alias nrh="npm run hot" | |
alias npmclear="rm -rf node_modules && rm package-lock.json && npm cache clear --force" | |
# Git | |
alias gnew="git init && gaa && gcmsg" | |
alias gt="gittower" | |
# Traversal | |
alias db="cd ~/Dropbox" | |
alias si="cd ~/Sites" | |
alias co="cd ~/Code" | |
alias zc="cd $ZSH/custom" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment