Some bashrc recommendations and what I use

แชร์
ฝัง

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

  • @takacsdenis
    @takacsdenis 5 ปีที่แล้ว +252

    Is this the computer nerd version of what's in my purse?

    • @LukeSmithxyz
      @LukeSmithxyz  5 ปีที่แล้ว +51

      You're thinking of EDC.

    • @p_serdiuk
      @p_serdiuk 5 ปีที่แล้ว +14

      @@LukeSmithxyz Every Day Computing.

    • @alexisalaric6941
      @alexisalaric6941 3 ปีที่แล้ว

      @August Nicholas I watch on Flixzone. You can find it on google :)

    • @alexisalaric6941
      @alexisalaric6941 3 ปีที่แล้ว

      @August Nicholas glad I could help =)

  • @sbarrett00
    @sbarrett00 5 ปีที่แล้ว +73

    Hey Luke, I really appreciate how you target these videos to everyone from beginners to advanced users.
    Your videos are very approachable and I always learn something new.

  • @showyouathingortwo
    @showyouathingortwo 5 ปีที่แล้ว +131

    Happy birthday luke

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

      I didn't know about that. I hope you have got a good day, Luke.

  • @marcussVRLinux
    @marcussVRLinux 5 ปีที่แล้ว +59

    For those who are wondering:
    /etc = Et cetera (latin for "and the rest") - so "etsy" would be a correct pronounciation
    /usr = UNIX System Resources (and not "user"... that's what your home directory is for)

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

      isn't /etc => edit to configure?

    • @marcussVRLinux
      @marcussVRLinux 5 ปีที่แล้ว +12

      @@vison360 Dennis Ritchie, the inventor of Unix itself, confirmed it to be et cetera (etc)

    • @DizzyCsango
      @DizzyCsango 5 ปีที่แล้ว +6

      You’re assuming the Romans spoke Latin the way G̶e̶o̶r̶g̶e̶ ̶W̶ ̶B̶u̶s̶h̶ an American speaks Spanish. In that case ‘et cetera’ would be pronounced et seetuhray. Thing is, nobody really knows how the Romans pronounced their Latin (liturgical Latin b.t.w. Is not the same), although it’s generally assumed the c would have been hard (like in cat); e.g kaisar (caesar). But hey, since nobody really knows I guess anything goes eh...

    • @user-tu5sk5km3l
      @user-tu5sk5km3l 5 ปีที่แล้ว +4

      you blew my mind with /usr

    • @qillerdaemon9331
      @qillerdaemon9331 5 ปีที่แล้ว +6

      No, /usr really meant user home directories and user resources in original old UNIX Sys3 and SysV file systems, it is short for "user" as it was the directory of users. Only later did /home or /users become the default directory for user home directories. I dealt in SysV on a 3B2/600 and early Xenix systems before Linus ever did his thing, they all defaulted to /usr for user home directories.

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

    Loving the nonchalant way you explained the starwars alias :)

  • @dimav23
    @dimav23 5 ปีที่แล้ว +8

    Luke, recommend to try bat. And a tip for your alias: try to figur out how to antialias a command after hit space like in zsh. Its better for your history 🤓

  • @silasandrews7655
    @silasandrews7655 5 ปีที่แล้ว +65

    17:53 Run this and see what happens
    Famous last words

    • @tttakkkumi
      @tttakkkumi 2 หลายเดือนก่อน

      What does ir do

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 5 ปีที่แล้ว +2

    0:56 Just a note that bashrc is only automatically invoked by non-login shells, so it’s either-or: either the new shell will run the profile, or the rc, not both. I find this annoying, so the best thing perhaps is to have the profile do little or nothing apart from automatically sourcing the rc, so you get the same definitions available either way.

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

    Do you have a list of all your recommended daily programs you use in the terminal?

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

    Does it not bring trouble using /home/luke as home directory for root? If you create files, they are owned by root:root which you cannot conveniently move/ delete without another step. Or do you have a smart workaround for that?

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

    2:48 Why is your personal scripts folder hidden (having a name beginning with a dot)?

  • @hegjon
    @hegjon 5 ปีที่แล้ว +2

    Thanks, btw for highlighting this works with files like .bashrc: alias pcat='pygmentize -f terminal -O style=native -g'

  • @Stevos-Corner
    @Stevos-Corner 5 ปีที่แล้ว

    Hi Luke was wondering if your still running Void Linux on one of your laptops. I watched your video on it and was thinking of giving it a try. I'm a long time Gentoo user who switched to Arch about a year ago and wanted to try something else without systemd.

  • @code8860
    @code8860 4 ปีที่แล้ว

    What is the notifications program are you using? Thanks!

  • @thedanmethenyshow.6004
    @thedanmethenyshow.6004 3 ปีที่แล้ว

    I'm glad I decided to watch this video. I've talked about it a couple of videos back but this gives me some great ideas for things.

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

    Luke I'm using your neomutt wizard and whenever gnupg timesout I have to re enter my password manually each time to get a notification regarding new mails. Is there anyway to fix this behaviour?

  • @earjack4610
    @earjack4610 5 ปีที่แล้ว

    why do you have the awk toupper thing in your bashrc?
    you could probably just use ${variable^^} to get an uppercase version of whatevr is in the var

  • @connie_d
    @connie_d 5 ปีที่แล้ว

    Love this vid. Why is your scripts directory hidden?

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

    7:50 haha nice!
    I got confused so many times when running sudo commands because it used /root

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

    If I make a change to my .bashrc. Can I just ~$./bashrc to reload it? Or do I have to logout and log back in?

  • @rhwinner
    @rhwinner 2 ปีที่แล้ว

    Very helpful. Keep 'em coming! :0

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

    Pretty much all of the aesthetic hacks in his bashrc is built into fish shell. U get some really sexy command completion there as well by default. I don't think I've tweaked my fish config one line other than the login script and color scheme, which really speaks for the sensible defaults that fish has

  • @valentjedi
    @valentjedi 5 ปีที่แล้ว +7

    Carpenter Brut confirmed

  • @pierresmith
    @pierresmith 3 ปีที่แล้ว

    Hi. Just checking your video now (From France !!) and I'm interested in your .profile file.
    Do you ahev a git with it ?
    Can you source things that are common to all the shells ? (like aliases, exports, prompts ?)

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

    Oh wow, i'm learning so much.. But i'll have to rewatch one day but its very useful :-)

  • @albu2b1
    @albu2b1 3 ปีที่แล้ว

    I cannot thank you enough although still tied to awesome instead of dwm but tthanks a million really appreciate what you doing

  • @jlaviews
    @jlaviews 5 ปีที่แล้ว

    what keyboard do you use? is it mech?

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

    was surprised to see such a small .bashrc, I really thought it was going to be +1000 lines.
    I have a terrible memory so I prefer having all my favorite aliases in there and then just running a search bash alias [sb] if I forget.

    • @dhiegov
      @dhiegov 5 ปีที่แล้ว

      He has a separate .shortcuts for cd'ing, mv'ing and cp'ing to dirs, maybe that's why the main one is so short

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

    Hi,
    I am a Linux noob, I don't understand which type of terminal are you using? How do you quickly open new windows nicely docked in their place? Also these terminals seem to be borderless? How can I get these? Please tell me.

  • @rishushrivastav4591
    @rishushrivastav4591 4 ปีที่แล้ว

    does anybody know what the text style is called in which the bashrc is written?

  • @superspectator123
    @superspectator123 5 ปีที่แล้ว +7

    I took two nice aliases from this video. Thank you.

  • @TzLTriiCkzZ
    @TzLTriiCkzZ 5 ปีที่แล้ว

    Not watched this video fully yet but one of the main reasons I use oh-my-zsh is so I can use the arrow blocky things that are in some of the themes. And I changed it so that if I'm root then it changes the background color of a couple of different blocks. One thing I'm not a huge fan of about The omz is because I have a lot of the additional blocks. There's is a delay when it builds the PS1. Also I have battery life information on there because it builds the PS1 after each command if I haven't run a command in a while it will show the wrong batter information.

  • @prakash.vishwakarma
    @prakash.vishwakarma 4 ปีที่แล้ว

    What shortcut do you use to increase font size on the go? I meant to ask this in reference to LARBS.

    • @baikerolomero544
      @baikerolomero544 4 ปีที่แล้ว

      Try Control and + on the numeric keypad

  • @le0narbeit93
    @le0narbeit93 4 ปีที่แล้ว

    where i can get the ascii art ?

  • @DonEdward
    @DonEdward 4 ปีที่แล้ว

    I cant read the operand character in the ttymaps file. (And lukesmith.xyz doesnt seem to show bashrc anymore)
    Is it '=' or '-' ?

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

    yay, new content video :)

  • @igneous_flock
    @igneous_flock 5 ปีที่แล้ว

    Regarding your syntax highlighting, you should checkout sharkdp's bat. It's a clone of cat that implements syntax highlighting as well as git diffs. It's written in rust.

  • @Marcosvinicius-im2jt
    @Marcosvinicius-im2jt 5 ปีที่แล้ว +2

    About the root home i think that when you need to recovery your system using runlevel 1 your home is gone.

  • @charliebrownau
    @charliebrownau 5 ปีที่แล้ว +8

    Will you be moving to GitLab from Hithub ?

    • @finnianquail8881
      @finnianquail8881 3 ปีที่แล้ว

      both suck lmao
      >gitlab is amazon trash
      >github is M$

  • @niclasa3135
    @niclasa3135 5 ปีที่แล้ว

    Great video, and thanks for sharing it with us. Do your dotfiles work for Ubuntu or only Arch Linux?

    • @dhiegov
      @dhiegov 5 ปีที่แล้ว

      Yes, as long as
      1. the two distros use the same commands to be aliased: for example, in Ubuntu the install command is `sudo apt-get install`, in Arch is something like `sudo pacman -S[something else I don't know because I don't use Arch]
      2. and also the same config configuration in things different distros can have different, like use /sbin to separate super user binaries or just /bin for every binary (probably they won't change THIS, but some other maybe confusing scheme in these not-children-of-home folders). But this should be counter-compatible as long as you're not messing (or even care) about this sort of folders

  • @serotonin4011
    @serotonin4011 5 ปีที่แล้ว

    What os do you use, i dont think i ask.

  • @desktorp
    @desktorp 5 ปีที่แล้ว +101

    referring to /etc as etsy really triggers me

    • @ltxr9973
      @ltxr9973 5 ปีที่แล้ว +19

      And I can't stop saying it like that since i've heard it the first time

    • @LukeSmithxyz
      @LukeSmithxyz  5 ปีที่แล้ว +41

      Yeah I have no clue why people pronounce it like that, but I eventually gave in.

    • @8-bit513
      @8-bit513 5 ปีที่แล้ว +10

      #metoo

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

      is it short for "et cetera" or does it mean something else?

    • @desktorp
      @desktorp 5 ปีที่แล้ว +5

      @burbon /usr does actually mean 'user' though

  • @serotonin4011
    @serotonin4011 5 ปีที่แล้ว

    What os do you use

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

    can u turn off autocd in zsh?

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

    6:08 zsh is the default shell in SystemRescueCD, and I discovered that it has one irritating habit: stripping off the trailing ”/” from a directory name *after you have typed it.* This causes problems when trying to do an rsync, since the behaviour is slightly different depending on whether the source directory ends with a “/” or not.

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

      Then you probably turned that option on without realizing when you copied someone's ZSH config. (Been there, done that)
      I use ZSH and I don't have this issue. The closest would be that when autocompleteting it will render a trailing slash that isn't there and is removed of you press space or something rather than typing it out yourself first. But you said that you wrote it and it's still stripped off.

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

      This was running straight off the SystemRescueCD image, so I couldn’t have set any options if I wanted to.

    • @Mankepanke
      @Mankepanke 5 ปีที่แล้ว

      Wow, that is weird. I wonder if the distro changed options in /etc.

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

    15:26 TIL that you can use youtube-dl to download all of the channel's video's in a single command

  • @tennisfreak312
    @tennisfreak312 5 ปีที่แล้ว

    what terminal program is that

  • @alexortiz10a
    @alexortiz10a 5 ปีที่แล้ว

    Hi Luke, Do you prefer bash or zsh? and can you explain the reason of you selection. Thank you!

    • @rexevan6714
      @rexevan6714 5 ปีที่แล้ว

      I think back then he chose bash over zsh because bash comes as default.

  • @orochinagi4358
    @orochinagi4358 2 ปีที่แล้ว

    How do you tile windows like that?

  • @scotthamilton228
    @scotthamilton228 4 ปีที่แล้ว

    Isn't the link to same profile hack a bad idea? It must be run several times at boot no?

  • @simonrose2
    @simonrose2 5 ปีที่แล้ว

    I'd recommend using 'sudo -E' for keeping the environment, instead of this /etc/passwd hack. (Or 'sudoedit file' instead of ' sudo vim file')

  • @p_serdiuk
    @p_serdiuk 5 ปีที่แล้ว

    You should be able to use su with your /home dotfiles. Here's the option:
    -m, -p, --preserve-environment Preserve the entire environment, i.e. it does not set HOME, SHELL, USER nor LOGNAME. This option is ignored if the option --login is specified.

  • @jerodburnett6422
    @jerodburnett6422 5 ปีที่แล้ว +5

    "some kshrc recommendations and what I use" video coming soon

  • @naumanafsar3053
    @naumanafsar3053 5 ปีที่แล้ว +5

    Does anyone know how he switches between the terminal? and how the terminal resize itself when he close one?

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

      Check out his i3 videos

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

      All the channel is about that

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

      Thanks man, it's really cool!

    • @naumanafsar3053
      @naumanafsar3053 5 ปีที่แล้ว +7

      I came here from a facebook post, and i am loving it! it's awesome!

  • @DiersakZelesnik
    @DiersakZelesnik 5 ปีที่แล้ว

    Is TH-cam-viewer just mps-youtube with a different name or is it a entirely different package?

    • @cesarbrun4216
      @cesarbrun4216 5 ปีที่แล้ว

      it's different, check your package manager

  • @hshiferaw
    @hshiferaw 5 ปีที่แล้ว

    wal theme name plz Luke :)

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

    I alias 'pacget' to 'sudo pacman -S' and 'pacupgrade' to 'sudo pacman -Syyu'. And 'pacs' to 'pacman -Ss'. Does that make me a noob? I also know the actual commands. And how to navigate the man page quickly when necessary..

  • @izzettin1586
    @izzettin1586 4 ปีที่แล้ว

    hi, my terminal is gone. all I can see is :
    "Last login: Tue May 5 08:29:01 on ttys007
    [İşlem tamamlandı]". (it means "job completed")
    I was making sth about bash profile and trying to save sth, I think i did sth wrong and terminal is not responding now, whatever I push. how can I fix it. even apple doesnt know, I called them. how can I fix it. On the top, its written that " Terminal -- java_home --bash 80X24"..
    thank you..

  • @msodev
    @msodev 5 ปีที่แล้ว

    Hi luke. I've been investigating for a couple of days now on how to make a usb from which i can simply plug it on to my Macbook and use arch linux as the OS but tutorials and the archwiki never really specify whether what they are showing is exactly what i want and I'm afraid of erasing my MacOS system. Im not a total begginner on linux but im just scared.
    To sum up, i Want a usb that contains a totally configured and working desktop enviroment to build my own custom rice :).
    Hope to hear from you soon, thanks

    • @dhiegov
      @dhiegov 5 ปีที่แล้ว

      What you are seeking is a `live distro` or `live medium`: one that you can boot and run normally from a USB drive. As far as I know, you can do that only by booting from your pendrive at start up, which you configure by pressing some function keys (f1-12) (varies depending on your computer manufacturer) on you computer start-up.

  • @patrickprucha5522
    @patrickprucha5522 9 หลายเดือนก่อน

    agree with you 1000% on the aliases!

  • @PabloBianchiOK
    @PabloBianchiOK 4 ปีที่แล้ว

    I'm pretty sure it was in this channel I learn about a useful command to watch a file/folder and do something else upon any change. I can't remember that command. I think it was three letters... Couldn't found on duckduckgo/apropos so far.

  • @pushqrdx
    @pushqrdx 2 ปีที่แล้ว

    and i thought you have the ctrl-s thing to fix incremental search :D

  • @oddbob6230
    @oddbob6230 5 ปีที่แล้ว +6

    What does the "rc" stand for? Run crippled?

    • @alcesmir
      @alcesmir 5 ปีที่แล้ว +6

      I think it's runcom, for some obscure historical reasons. You might have some luck consulting the jargon file for this.

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

      Really cool. Thanks.

    • @gz6616
      @gz6616 5 ปีที่แล้ว +8

      rc -> really cool

  • @Fabiuja
    @Fabiuja 3 ปีที่แล้ว

    From 7:55 why u say is not safe? That trick blow my mind i want to use it.

  • @PraveenRai
    @PraveenRai 3 ปีที่แล้ว

    @Luke Smith Could you please share your bashrc config. i can see your deleted your old dotfile from your repro. if not mind could you lease share.

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

    mfw the only thing I ever put in mine is cat for a text file with an ascii image.

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

    The .bashrc on LukeSmithxyz/voidrice github is only 8 lines? What am I missing?

  • @felaflame
    @felaflame 4 ปีที่แล้ว

    Hm, fictional phone-call, as during unsuccessful date :)

  • @timelesstrance3720
    @timelesstrance3720 5 ปีที่แล้ว

    Oh, the implicit nature of gods and their BIG hard drives 6:56

  • @RudyHill
    @RudyHill 5 ปีที่แล้ว +7

    where tf is the meme thumbnail?

  • @TdTSimonBE
    @TdTSimonBE 5 ปีที่แล้ว +8

    Of course fish has real abbreviations instead of aliases, so you can edit the command on the fly. Another bash problem solved.

    • @vison360
      @vison360 5 ปีที่แล้ว +2

      Biggest advantage of fish is it's directory structure. You can create truly modular configs and symlink them with GNU Stow

    • @leotaku5216
      @leotaku5216 5 ปีที่แล้ว

      Daniel Lewan: How is that not possible with bash/zsh?

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

      @@leotaku5216 of course you can, but you have it by default in Fish. Simply better design.

    • @djtaro6173
      @djtaro6173 4 ปีที่แล้ว

      @@vison360 What is the value of that?

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

    Luke senpai with the simplest line of code.

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

    alias back="cd $OLDPWD". i think it is useful :D

    • @CoreyTL
      @CoreyTL 3 ปีที่แล้ว

      ik this is two years ago, but "cd .." exists

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

      @@CoreyTL hi! "cd .." goes to the parent directory, that's not always the previous one. "cd -" does it.

  • @finndriver1063
    @finndriver1063 5 ปีที่แล้ว

    My favourite evil thing to put in someone's profile or bashrc is `yes >> .bashrc'
    It's not usually destructive, just quite funny, and it looks quite unassuming

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

    How do you get the name of the file displayed on top of your files?

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

      Could you please rephrase you question, please? I can't understand it well

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

      @@dhiegov oh I am so sorry dhiego, I was talking about the letters on top of the basrc file that said bashrc with special characters.. and actually I figured it out. Thanks for responding anyways.

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

      @@nicolasvillafan ah! You original question makes sense now, hehe. You're welcome. How did you figured that out, thought?

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

    Instead of setting root's homedir to your user's homedir and instead of aliasing "sudo edit", use the command `sudoedit`, it runs your editor as your user and thus uses your .vimrc and then save it as root,

  • @jaygreentree4394
    @jaygreentree4394 4 ปีที่แล้ว

    Great video but the keyboard clicking makes it difficult to hear.

  • @peterjansen4826
    @peterjansen4826 5 ปีที่แล้ว +2

    I thought that Luke runs Parabola (Arch-based) but he uses apt-get (Debian, Ubuntu)? Did he hop or did he install apt-get on his Parabola?

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

      He just entered those lines for reference, and then deleted those lines. He ran pacman earlier in the video.

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

    Imagine not ignoring case for auto completion

  • @G18395
    @G18395 4 ปีที่แล้ว

    Before this video I was creating a new shell script every time in /usr/bin instead of using alias. I'm a noob lol.

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

    You should try zsh :P

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

      I just switched to fish yesterday. It's pretty cool.

    • @alkeryn1700
      @alkeryn1700 5 ปีที่แล้ว

      I tried fish but in the end i couldn't do few things i was doing on zsh, plus you can use plugins on zsh to have it like fish
      so i went back to zsh ^

    • @Discordianism
      @Discordianism 5 ปีที่แล้ว

      @@alkeryn1700 True. I tried fish when it came out a couple years back but I remember it being kinda funny. Seems much more stable now. I still haven't run into anything weird yet. Will chsh to default once I feel it's decent. Zsh is still default for now.

    • @alkeryn1700
      @alkeryn1700 5 ปีที่แล้ว

      @@Pichelinou Not my case, zsh have some great autocompletion and suggestions, help menus so you don't need to use -h on commands or read manuals most of the time
      Also you can have way more customed prompt and generally your zsh can behave exactly like you want it to

    • @engineerwolf3692
      @engineerwolf3692 5 ปีที่แล้ว

      [Bash-it](github.com/Bash-it/bash-it) bridges the gap between zsh and bash quite nicely. I mean its not complete drop in replacement, but its quite close. I like bash because its everywhere. I can ssh into any of my servers and be sure bash will be there. not so much for zsh. And I don't like the idea of using one thing on local and another on remote.

  • @Deibi078
    @Deibi078 2 ปีที่แล้ว

    Omg

  • @marcussmithwick6326
    @marcussmithwick6326 5 ปีที่แล้ว

    Yossss

  • @felipeporto2758
    @felipeporto2758 5 ปีที่แล้ว +8

    GUHNOO SLASH LINUHX

  • @shady4tv
    @shady4tv 5 ปีที่แล้ว

    On the topic of security giving your root user the same dot files as your main user is generally pretty insecure because if i can exploit your main user I can easily privesc using some code in the dot files. If root calls a shell for some reason (for example running a script in a cron job) it will execute whatever is in that dot file - which can be some nasty shit. you're probs OK since this is a home PC and not a server but just FYI.

  • @killistan
    @killistan 2 ปีที่แล้ว

    my first concern about sharing the homedir as root, is perhaps ~/.scripts should not be in the PATH for root...

  • @KingZero69
    @KingZero69 5 ปีที่แล้ว +5

    the virgin bash user, and the chad zsh user...

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

    god, why such huge gaps

  • @palashahuja8480
    @palashahuja8480 4 ปีที่แล้ว

    stuff like that

  • @ryanafacation
    @ryanafacation 5 ปีที่แล้ว

    use eshell

  • @JessicaFEREM
    @JessicaFEREM 5 ปีที่แล้ว

    inb4 1tb bashrc

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

    Damn i can't find his bashrc on his github

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

    That call was scripted Luke, and that email too. We know you already

  • @eugenemorozov
    @eugenemorozov 5 ปีที่แล้ว

    I prefer sudo -i to sudo su.

  • @aws96314
    @aws96314 5 ปีที่แล้ว

    Since you mentioned highlight, have you ever tried bat. It is a replacement for cat written in Rust, but it is so much better.
    you can find it here: github.com/sharkdp/bat

  • @IrizarryBrandon
    @IrizarryBrandon 5 ปีที่แล้ว

    You can, in /root, make symbolic links to your underprivileged-user configs, thus avoiding dealing with your editor's vanilla config whenever you sudo-edit a root-owned file.

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

    Luke, please for the love of UNIX, stop referring to "folders". They are "directories". Also, I love your stuff. Keep up the great work.

  • @polar3849
    @polar3849 3 ปีที่แล้ว

    11:33 line 27 a dog whistle? 🤔🤔🤔🤔🤔

  • @kainbre
    @kainbre 5 ปีที่แล้ว

    btw time stamp for bash history, just add this: HISTTIMEFORMAT='%F %T ' in .bashrc file. More here! sanctum.geek.nz/arabesque/better-bash-history/

  • @tobeypeters
    @tobeypeters 4 ปีที่แล้ว

    Don't see a link to your .bashrc file here or on your github