My Productivity Shell Settings | oh-my-zsh, auto-suggestions and more

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 7

  • @headiez5989
    @headiez5989 Год назад +1

    Hey, I really enjoyed your article "Modularizing React Applications with Established UI Patterns" Wondering if you'd consider making videos for the installments?😃

    • @icodeit.juntao
      @icodeit.juntao  Год назад +1

      Hi Headiez, thanks for replying it's actually on my backlog.
      I'll try to do that maybe this weekend.
      Cheers!

  • @aronwomack359
    @aronwomack359 Год назад +1

    Instead of sourcing your shell, you can simply call it. Literally type zsh.
    Same as bash. Or a period space then the rc or whatever you're trying to relaunch.

    • @icodeit.juntao
      @icodeit.juntao  Год назад

      Thanks for pointing it out Aron. Yeah, I used to use the period command `. ~/.zshrc`, I didn't know you can `zsh ~/.zshrc`, good tip!

    • @aronwomack359
      @aronwomack359 Год назад +1

      @@icodeit.juntao no problem at all, I see people even closed the tty they're in, but the name bash or whatever you are using is the command to call it. It creates a new tty I believe and it will kill your aliases and etc.
      I usually set my prompt to something short to have more room. To do that in the prompt type PS1=">" in bash for sure. Fish and zsh are different. I used to be a bash lover, then using fish and ranger, I get a lot more done. And having dozens of aliases in my .bashrc. And functions, but I'm sure you know what I mean.

    • @icodeit.juntao
      @icodeit.juntao  Год назад

      Agree. The default prompt of oh-my-zsh is pretty short and informative (pwd, git branch and a indicator of whether the working direction is dirty).
      I was a backend developer needed to login through tty to a headless server back to 2012, and I know what you mean about the screen room stuff, lol.

    • @aronwomack359
      @aronwomack359 Год назад +1

      @@icodeit.juntao I hear ya, I'm just kind of in a bind because my laptop only has 8 gigs of mem, and I use gimp and visual code and after 20 minutes, it's getting hot and I have to stop for a few minutes because the fan is so loud lol. But ya. When it comes to working in a shell, every situation is different and now days, posix isn't as crucial. But I help people write scripts and they don't understand that there is an unlimited amount of redirect and piping you can do. I started to just write code straight from the cli, no color highlights or anything. just cat > whatever file and chmod + x that file and it's executable. Sometimes it will say you're supposed to be root. Then I gotta type sudo !! That runs the last command as super user. I get so tired of sudo lol. And I learned the hard way at first not to just log in as root everytime haha.