Skip to content

Instantly share code, notes, and snippets.

@5SMNOONMS5
Last active March 18, 2024 15:15
Show Gist options
  • Save 5SMNOONMS5/37a9e8377273d6c4bd49121e7f1e6122 to your computer and use it in GitHub Desktop.
Save 5SMNOONMS5/37a9e8377273d6c4bd49121e7f1e6122 to your computer and use it in GitHub Desktop.
personal alias for mac OS
### Normal
alias cl_ipconfig='ifconfig | grep inet'
### iOS
alias cl_show_simulators='xcrun simctl list'
alias cl_open_xcode_matadata='open -a finder ~/Library/Developer/Xcode'
alias cl_open_provisioning_profiles='open -a finder ~/Library/MobileDevice/Provisioning\ Profiles/'
alias cl_open_derived_data='open -a finder ~/Library/Developer/Xcode/DerivedData/'
alias cl_rm_derived_data='rm -rf ~/Library/Developer/Xcode/DerivedData/*'
alias cl_rm_all_simulator='xcrun simctl delete all'
### Docker
alias dc='docker-compose'
### PHP & Laravel
alias pa="php artisan"
alias patf="php artisan test --filter="
alias cl_php_ini='php -r "phpinfo();" | grep php.ini'
alias cl_artisan_migrate_seed='php artisan migrate:fresh --seed'
# 『 MyArt 』
alias cl_52="cd /Users/stephen/Desktop/Projects/MyArt/52myart_new_laravel || exit"
alias cl_52_laravel_work_mode="cd ~/Desktop/Projects/laradock && docker-compose up -d mysql redis && cd ~/Desktop/Projects/MyArt/52myart_new_laravel && php artisan serve"
alias cl_52_nuxt3_frontend="cd /Users/stephen/Desktop/Projects/MyArt/nuxt3.frontend || exit"
alias cl_52_nuxt3_frontend_work_mode="cd /Users/stephen/Desktop/Projects/MyArt/nuxt3.frontend || exit && npm run dev"
alias cl_52_nuxt3_gallery="cd /Users/stephen/Desktop/Projects/MyArt/nuxt3.admin.gallery || exit"
alias cl_52_nuxt3_gallery_work_mode="cd /Users/stephen/Desktop/Projects/MyArt/nuxt3.admin.gallery || exit && npm run dev"
# 『 Hrda 』
alias cl_hrda="cd ~/Desktop/Projects/HRDA/research_laravel || exit"
alias cl_hrda_work_mode="cd ~/Desktop/Projects/laradock && docker-compose up -d mysql redis && cd ~/Desktop/Projects/HRDA/research_laravel && php artisan serve"
# 『 Hrda - Psyda 』
alias cl_psyda="cd ~/Desktop/Projects/HRDA-真心丞相/psyda || exit"
alias cl_psyda_work_mode="cd ~/Desktop/Projects/laradock && docker-compose up -d mysql redis && cd ~/Desktop/Projects/HRDA-真心丞相/psyda && php artisan serve"
# 『 Pay 』
alias cl_pay="cd ~/Desktop/Projects/Pay/pay_laravel || exit"
alias cl_pay_work_mode="cd ~/Desktop/Projects/laradock && docker-compose up -d mysql redis && cd ~/Desktop/Projects/Pay/pay_laravel && php artisan serve"
# 『 Pay - Company1 』
alias cl_pay_c1="cd ~/Desktop/Projects/Pay_company1 || exit"
alias cl_pay_c1_work_mode="cd ~/Desktop/Projects/laradock && docker-compose up -d mysql redis && cd ~/Desktop/Projects/Pay_company1 && php artisan serve"
# 『 TTmotor 』
alias cl_ttmotor="cd ~/Desktop/Projects/TTMotor/ttmotor_laravel || exit"
alias cl_ttmotor_work_mode="cd ~/Desktop/Projects/laradock && docker-compose up -d mysql redis && cd ~/Desktop/Projects/TTMotor/ttmotor_laravel && php artisan serve"
# 『 Game 』
alias cl_game="cd ~/Desktop/Projects/鈗聯/game || exit"
alias cl_game_work_mode="cd ~/Desktop/Projects/laradock || exit && docker-compose up -d mysql redis && cd ~/Desktop/Projects/鈗聯/game || exit && php artisan serve"
alias cl_game_center="cd ~/Desktop/Projects/鈗聯/game.center || exit"
alias cl_game_center_work_mode="cd ~/Desktop/Projects/laradock || exit && docker-compose up -d mysql redis && cd ~/Desktop/Projects/鈗聯/game.center || exit && php artisan serve"
alias cl_1_3_min=" ~/Desktop/Projects/鈗聯/game.13mins || exit"
alias cl_1_3_min_work_mode="cd ~/Desktop/Projects/laradock || exit && docker-compose up -d mysql redis && cd ~/Desktop/Projects/鈗聯/game.13mins || exit && php artisan serve"
alias cl_cancer="cd ~/Desktop/Projects/cancer/cancer.laravel || exit"
alias cl_cancer_work_mode="cd ~/Desktop/Projects/laradock && docker-compose up -d mysql redis && cd ~/Desktop/Projects/cancer/cancer.laravel && php artisan serve"
### Other
alias cl_tree="tree -v -N"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment