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.
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)
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...
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.
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.
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.
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.
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.
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 🤓
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
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?
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 ?)
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.
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..
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..
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?
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.
@@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.
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
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.
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.
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.
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.
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
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
5:44 Emacs is able to use those keys without your having to disable their special tty meaning. I think it uses something called “raw” mode. Perhaps the vi developers should learn about this?
@@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.
@@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
[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.
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.
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
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.
@@_SkyEye 😂😂 I was talking about using bash in vim mode. As opposed to the standard emacs mode. If you do end up learning vim, look it up, it helps you use the same muscle memory on your bash prompt. Ctrl-L and Ctrl-D still work with default bash. Try them out!
Is this the computer nerd version of what's in my purse?
You're thinking of EDC.
@@LukeSmithxyz Every Day Computing.
@August Nicholas I watch on Flixzone. You can find it on google :)
@August Nicholas glad I could help =)
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.
Happy birthday luke
I didn't know about that. I hope you have got a good day, Luke.
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)
isn't /etc => edit to configure?
@@vison360 Dennis Ritchie, the inventor of Unix itself, confirmed it to be et cetera (etc)
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...
you blew my mind with /usr
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.
17:53 Run this and see what happens
Famous last words
What does ir do
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.
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.
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.
This was running straight off the SystemRescueCD image, so I couldn’t have set any options if I wanted to.
Wow, that is weird. I wonder if the distro changed options in /etc.
2:48 Why is your personal scripts folder hidden (having a name beginning with a dot)?
15:26 TIL that you can use youtube-dl to download all of the channel's video's in a single command
referring to /etc as etsy really triggers me
And I can't stop saying it like that since i've heard it the first time
Yeah I have no clue why people pronounce it like that, but I eventually gave in.
#metoo
is it short for "et cetera" or does it mean something else?
@burbon /usr does actually mean 'user' though
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.
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
Carpenter Brut confirmed
Loving the nonchalant way you explained the starwars alias :)
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 🤓
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
I took two nice aliases from this video. Thank you.
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?
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 ?)
What does the "rc" stand for? Run crippled?
I think it's runcom, for some obscure historical reasons. You might have some luck consulting the jargon file for this.
Really cool. Thanks.
rc -> really cool
Does anyone know how he switches between the terminal? and how the terminal resize itself when he close one?
Check out his i3 videos
All the channel is about that
Thanks man, it's really cool!
I came here from a facebook post, and i am loving it! it's awesome!
Thanks, btw for highlighting this works with files like .bashrc: alias pcat='pygmentize -f terminal -O style=native -g'
Will you be moving to GitLab from Hithub ?
both suck lmao
>gitlab is amazon trash
>github is M$
About the root home i think that when you need to recovery your system using runlevel 1 your home is gone.
7:50 haha nice!
I got confused so many times when running sudo commands because it used /root
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.
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?
"some kshrc recommendations and what I use" video coming soon
can u turn off autocd in zsh?
Do you have a list of all your recommended daily programs you use in the terminal?
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..
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..
What is the notifications program are you using? Thanks!
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?
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
From 7:55 why u say is not safe? That trick blow my mind i want to use it.
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.
0:19 anyone else hear the fart?
Most aducating thing in a video🎉
Of course fish has real abbreviations instead of aliases, so you can edit the command on the fly. Another bash problem solved.
Biggest advantage of fish is it's directory structure. You can create truly modular configs and symlink them with GNU Stow
Daniel Lewan: How is that not possible with bash/zsh?
@@leotaku5216 of course you can, but you have it by default in Fish. Simply better design.
@@vison360 What is the value of that?
The .bashrc on LukeSmithxyz/voidrice github is only 8 lines? What am I missing?
really .. icant get that too .. i think he changed
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.
I cant read the operand character in the ttymaps file. (And lukesmith.xyz doesnt seem to show bashrc anymore)
Is it '=' or '-' ?
Oh wow, i'm learning so much.. But i'll have to rewatch one day but its very useful :-)
where i can get the ascii art ?
mfw the only thing I ever put in mine is cat for a text file with an ascii image.
What shortcut do you use to increase font size on the go? I meant to ask this in reference to LARBS.
Try Control and + on the numeric keypad
and i thought you have the ctrl-s thing to fix incremental search :D
Isn't the link to same profile hack a bad idea? It must be run several times at boot no?
what keyboard do you use? is it mech?
does anybody know what the text style is called in which the bashrc is written?
How do you get the name of the file displayed on top of your files?
Could you please rephrase you question, please? I can't understand it well
@@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.
@@nicolasvillafan ah! You original question makes sense now, hehe. You're welcome. How did you figured that out, thought?
I cannot thank you enough although still tied to awesome instead of dwm but tthanks a million really appreciate what you doing
How do you tile windows like that?
@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.
alias back="cd $OLDPWD". i think it is useful :D
ik this is two years ago, but "cd .." exists
@@CoreyTL hi! "cd .." goes to the parent directory, that's not always the previous one. "cd -" does it.
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
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.
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.
Hi Luke, Do you prefer bash or zsh? and can you explain the reason of you selection. Thank you!
I think back then he chose bash over zsh because bash comes as default.
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.
Luke senpai with the simplest line of code.
Very helpful. Keep 'em coming! :0
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?
He just entered those lines for reference, and then deleted those lines. He ran pacman earlier in the video.
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.
what terminal program is that
What os do you use, i dont think i ask.
11:33 line 27 a dog whistle? 🤔🤔🤔🤔🤔
Is TH-cam-viewer just mps-youtube with a different name or is it a entirely different package?
it's different, check your package manager
Great video, and thanks for sharing it with us. Do your dotfiles work for Ubuntu or only Arch Linux?
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
What os do you use
wal theme name plz Luke :)
Love this vid. Why is your scripts directory hidden?
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
Before this video I was creating a new shell script every time in /usr/bin instead of using alias. I'm a noob lol.
Hm, fictional phone-call, as during unsuccessful date :)
5:44 Emacs is able to use those keys without your having to disable their special tty meaning. I think it uses something called “raw” mode. Perhaps the vi developers should learn about this?
Oh, the implicit nature of gods and their BIG hard drives 6:56
where tf is the meme thumbnail?
I'd recommend using 'sudo -E' for keeping the environment, instead of this /etc/passwd hack. (Or 'sudoedit file' instead of ' sudo vim file')
Damn i can't find his bashrc on his github
ls -a
agree with you 1000% on the aliases!
Great video but the keyboard clicking makes it difficult to hear.
yay, new content video :)
Imagine not ignoring case for auto completion
the virgin bash user, and the chad zsh user...
You should try zsh :P
I just switched to fish yesterday. It's pretty cool.
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 ^
@@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.
@@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
[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.
god, why such huge gaps
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.
GUHNOO SLASH LINUHX
Don't see a link to your .bashrc file here or on your github
That call was scripted Luke, and that email too. We know you already
>recommends against making aliases for subcommands
>has an alias for git
That's for a command. A subcommand would be having an alias for "git status" etc. Which I totally have lots of anyway personally
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
Luke, please for the love of UNIX, stop referring to "folders". They are "directories". Also, I love your stuff. Keep up the great work.
btw time stamp for bash history, just add this: HISTTIMEFORMAT='%F %T ' in .bashrc file. More here! sanctum.geek.nz/arabesque/better-bash-history/
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.
you use systemd?? Very disappointed... XD
And don’t make the root’s homedir a regular user’s homedir; this regular user effectively has root access.
Omg
inb4 1tb bashrc
I prefer sudo -i to sudo su.
alias c=“clear”
alias e=“exit”
^L is shorthand for clear (only works in command mode, if using bash in vim mode),
^D is EOF, and terminates your session.
Atihcin - don’t ‘bash’ me but I’m not using vim, I’ve got too many things to learn so I’ve got to prioritize... using nano and pleased with it.
@@_SkyEye 😂😂
I was talking about using bash in vim mode. As opposed to the standard emacs mode. If you do end up learning vim, look it up, it helps you use the same muscle memory on your bash prompt.
Ctrl-L and Ctrl-D still work with default bash. Try them out!
Strange in these bash videos, no one ever talks about .inputrc