5 Valuable Command Line Aliases

Опубликовано: 23 Октябрь 2024
на канале: BrainTrust Digital
274
18

In this quick tip we're going to walk through my top 5 most valuable command line aliases. Stick around until the end, the last 2 aliases are really useful. Everyone's workflow is different, but for me, these valuable as they save me tons of time through out the day.

⏰ Timestamps
0:00 Introduction
0:48 Getting started
0:59 #1 Traverse Folders
1:29 #2 Show/hide files
3:01 #3 Flush DNS Cache
4:25 #4 Production Deploy
5:17 #5 Sync Database
7:28 Bonus Alias

Aliases used
#1 Traverse Folders
alias ..="cd ../"
alias ...="cd ../../"

#2 Show/hide files
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'

#3 Flush DNS Cache
alias flush="sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say 'cache flushed'"

#4 Production Deploy
alias cpd="bundle exec cap production deploy"

#5 Sync Database
alias dbp=“bundle exec cap production db:pull;bin/rails db:environment:set RAILS_ENV=development"
----

Production Deploy
   • How to Deploy Your First Rails App to...  

Sync Database Tutorial
   • How to Sync Production Data in Rails ...  

AWS + Rails Series Playlist
   • AWS + Rails  

My Gear List
http://brain-trust.io/my-gear

My YouTube SEO Software
https://www.tubebuddy.com/braintrust

My Accounting Software
https://shareasale.com/r.cfm?b=960179...

Try Audible and Get Two Free Audiobooks
https://amzn.to/36dXe3V

Make sure you subscribe to my channel to keep up to date with new content!

DISCLAIMER: Links in this description include affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting BrainTrust Digital so I can continue to provide you with free content each week!