5 Terminal Aliases Every Developer Needs To Know!

preview_player
Показать описание
Level up your coding productivity with Mac terminal aliases.

There are many use cases for using aliases in the command line. In this video, I'll not only share with you 5 practical uses, but I'll give you lots of examples throughout the video that you can add to your own coding workflow.

Tune in!

Timestamps
00:00 Intro
00:31 What is a terminal alias?
00:50 How to use aliases?
01:54 Alias Type 1
02:40 Alias Type 2
04:36 Alias Type 3
06:12 Alias Type 4
06:48 Alias Type 4
07:35 Bonus!!
0844 Outro

Video Recommendations

** Career Path Coding Tracks **

** My Coding Blueprints **
Both FREE in the Travis Media Community

** I write regularly **

** FREE EBOOKS **

LET'S CONNECT!

#mac #terminal #commandline #alias

** Some of the links in this description may be affiliate links that I may get a little cut of. Thank you.
Рекомендации по теме
Комментарии
Автор

it's recommended that you use a separate file for your aliases
instead of adding them to your user bashrc or zshrc file
then this file is sourced everytime you start a new session
for this reason default bashrcs usually have a block like this

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

/$user/.bash_aliases being the suggested file for aliases
you could then extend this with another file for functions

phatboislym
Автор

Thank you so much! This has been super helpful.

joletun
Автор

Can we setup password variables with allies

creekford
Автор

Hey Travis! Love the video, gotta ask, what assistant was that in the beginning? Looks cool and helpful

yslstahl
Автор

and then you forget all the original commands :)

aidoka
Автор

Hi Travis, Would you kindly consider upgrading the course titled 'Bike Rental App'? Thenks

nerminsky
Автор

you forgot to mention that function accepts parameters. For silly example, printing first line from a file and changing each word to X:
h1() { head -1 "$1" | sed 's/\w/X/g' ; }

using:
h1 file1.txt
h1 file2.txt

there is a pipe inside a function and this is impossible to make it work with only aliases because they are only simple abbreviations and you can't inject something into an alias. Function let you put parameter at any position.

voytechj
join shbcf.ru