5 Terminal Aliases Every Developer Needs To Know!

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ม.ค. 2025

ความคิดเห็น • 14

  • @phatboislym
    @phatboislym ปีที่แล้ว +10

    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

    • @TravisMedia
      @TravisMedia  ปีที่แล้ว +3

      Yep this is the way. Wanted to keep it simple and short but thank you for adding this for others to read and learn.

    • @stevenewbank
      @stevenewbank 8 หลายเดือนก่อน

      Rather good idea, thanks for sharing. Someone needs to make a quick video on it 👍

  • @ergonautilus
    @ergonautilus 7 หลายเดือนก่อน

    1:27 - My new Mac doesn't have a ~/.bashrc or ~/.zshrc file, why not?

  • @yslstahl
    @yslstahl ปีที่แล้ว

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

    • @TravisMedia
      @TravisMedia  ปีที่แล้ว +1

      Thanks. It’s called Voila. I have a video dropping November 19 about it and how to get it for a low one time fee. But that deal isn’t live yet. Stay tuned.

  • @HavoJavo
    @HavoJavo ปีที่แล้ว

    Nice, tyvm

  • @creekford483
    @creekford483 ปีที่แล้ว

    Can we setup password variables with allies

  • @nerminsky1039
    @nerminsky1039 ปีที่แล้ว

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

  • @aidoka2000
    @aidoka2000 ปีที่แล้ว +4

    and then you forget all the original commands :)

  • @mattcargile
    @mattcargile 6 หลายเดือนก่อน

    No xoide or z jumper huh?! 😊

  • @the7odmelmoney
    @the7odmelmoney ปีที่แล้ว

    This is great

  • @voytechj
    @voytechj ปีที่แล้ว

    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.

  • @trainofthought5733
    @trainofthought5733 ปีที่แล้ว

    Mac 👀