Thank you :) Just if I want to change a new my choices, for instance I want to add the hour in the options I had, after the configuration we made into the .zshrc file how may I do ? I changed the line at ZSH=THEME="powerlevel10k/powerlevel10k" to reput it but it did not renitialize or ask me a new for my choices, it became as it was with my inital choices (minimalist, no icon etc), can you enlighten me ? @@justmeandopensource
@@pivot4all The default tmux meta key is "ctrl+b" and then the action key. So if you are using the default configuration and you want to move focus to different panes, press "ctrl+b" first followed by the arrow key. If you are using my tmux configuration, its "alt+arrow" to move around. "ctrl+d" to close the current terminal. Or F12 if you are using my tmux config. Cheers.
I found it myself! add the line: set -g mouse on (in the .tmux.conf file) and then reopen the terminal Press Ctrl + b and then move/resize it with 4 arrow keys and F12 is to kill the active pane!
Hi Anuj, thanks for watching. That is my Web Browser which is Qutebrowser. It is a keyboard driven browser and you saw me typing to open a new web page.
I've tried 3 times, I guess, to install it. When we get to to the wisard, the only options shown are (r) and (q) above it are the examples, but not the numbers to chose. I used the logic of positioning but the end result wasn't what I expected. Will try again, soon. Again. Thanks for the video.
Thanks Venkat for always producing quality content. Awesome work . Is there any setting to only allow adding working commands to the history ? for example - blocking any rubbish like asasasasa going in to the history ?
This is awesome Venkat , 1)How about navigation in tmux , and closing the windows , 2) For CentOS installation instructions will be pretty much I believe except apt ?
Hi, thanks for watching. I have changed the keybindings in tmux configuration for most operations. Check the tmux config file in my dotfiles repo for the keybinding for navigation. Installation steps are mostly similar for centos.
@@justmeandopensource well everything else works fine so i suppose maybe the command might have changed? I've never used zsh on any of my real linux installations so i can't tell.
Hi Venkat, Do you have any suggestion for following use case ? I have my terminal set up exactly how you have mentioned but I face one challenge all the time : Use case : 1. Open the terminal , make connection to aws account (sets bunch of env variables like AWS_PROFILE,AWS_ACCESS_KEY_ID= etc ...) 2. Start tmux session and create few panes.. 3. Env variables are shared on all panes and everything works as expected. 4. Now when the aws connection expires and if you refresh the connection on any pane then it is not shared across all other open panes. so the only solution to get it working is either make the connection on each pane so that env vars are available on each pane or close tmux session , create aws connection again and then start a new session and create multiple panes.
@@justmeandopensource Just a normal aws cli connection to get access to aws resources . I have following script to provide access to aws resources #!/bin/bash mfa_arn="arn:aws:iam:::mfa/" aws_target_account="" echo "Enter valid token for your MFA ($mfa_arn):" read -r token unset AWS_ACCESS_KEY_ID unset AWS_SECRET_ACCESS_KEY unset AWS_SESSION_TOKEN export AWS_DEFAULT_REGION=us-east-1 rm -f token.json aws sts get-session-token --serial-number $mfa_arn --token-code $token --profile dev-account > token.json chmod 400 token.json export AWS_ACCESS_KEY_ID=$(jq -r '.Credentials.AccessKeyId' token.json) export AWS_SECRET_ACCESS_KEY=$(jq -r '.Credentials.SecretAccessKey' token.json) export AWS_SESSION_TOKEN=$(jq -r '.Credentials.SessionToken' token.json) rm -f token.json # assume admin role from aws sts assume-role --role-arn "arn:aws:iam:::role/admin" --role-session-name dev-admin-role > role_token.json chmod 400 role_token.json export AWS_ACCESS_KEY_ID=$(jq -r '.Credentials.AccessKeyId' role_token.json) export AWS_SECRET_ACCESS_KEY=$(jq -r '.Credentials.SecretAccessKey' role_token.json) export AWS_SESSION_TOKEN=$(jq -r '.Credentials.SessionToken' role_token.json) rm -f role_token.json export AWS_PROFILE=$aws_target_account As you can notice , in the end the script exports coulple of env variables which enables the connection to aws account. So basically the question is how to share environment variables across panes in a tmux session when those are refreshed again with new values ..?
Let's take the aws out of this to simplify the question. 1. Connect to terminal 2. set an env variable like export city=london 3. start a tmux session and create 2 panes 4. Run echo $city in both panes and it will show london 5. update the city of delhi in one pane . export city=delhi 6. Run echo $city in other pane, it will continue to show london 7. Now the question is how to set city value to delhi in both the panes by updating it in one place ?
@@surensingh123 Okay. You got to understand that each pane is an individual shell process. You start with a shell where you export a variable. From that shell you launch two child shells (which are tmux panes) which will inherit those variables. But if you override them in the child shell, it affects only that child shell. Hope it makes sense.
@@justmeandopensource yeah, that was clear already. I was wondering if there is a possibility to achieve the behavior that I mentioned. Thanks for your time.
Those are panes. I create vertical or horizontal panes and can switch between different panes with custom keyboard shortcut. I mapped Alt+[Left/Right/Up/Down] to move to different panes. Thanks for watching this video.
Vwnkat, as others already stated, your videos rock. Being a Windows user and Linux newbie I have one question: I noticed you using a "open -t github ...." to search at the ":" prompt. So, is it something native to Linux, Hour shel, or a Linux program? Whould you share this part of your environment? Thanks.
Hi B S, thanks for watching. Thats actually my web browser which is Qutebrowser (www.qutebrowser.org/). It is a keyboard driven browser so you can do all common stuff with key bindings.
i'm facing issue on tmux profile look when i execute tmux ,it doesn't come as same profile settings ,which is been in zshell ,but the tmux options are working like f6,f5 etc. Little bit weird . do you have any idea ?
Thanks Venkat for producing ever great videos. May i ask more regarding your laptop testing environment? I saw you use both kvm and lxd, regarding lxd do you suggest to install it inside a kvm vm or directly on the host where you already have kvm? thank you in advance
Hi Manuel, I have Arch Linux on my Laptop and got Kvm/libvirt and lxc/lxd installed. Lxc/lxd is directly installed on the host and not on a VM. I am running Linux OS, why should I bother install lxd on a VM?
@@justmeandopensource thank you for your reply, maybe i misurunderstood configuration in other videos, looked like lxc/lxd was installed on a VM, thank you again for the clarification
Thanks for the tip! I don't use apt based distributions. This video was just for demonstration purpose. My actual set up is Arch based. Thanks for watching.
I have find this solution on Ubuntu, go to terminal preferences, default profile, command menu, check run a custom command instead of my shell, and put tmux as custom command
One more thing upset me, a little, as I'm still learning Linux. The prompt shows where we are, but when we hit enter for a "ls" command, for example, that one changes, and no more shows the "directory" where we applied the "ls" command. I really would think useful if it maintains the prompt in "full mode".
another great video I'm on a M1 mac pro, running ubuntu arm64 in parallel desktop 18 followed everything then got to tmux, I couldn't get f5, f6,f10 to work. I set cmd+l for f5 , cmd+v for f6 and cmd+s for f10. they only worked once while I was in the terminal. I exit out and go back it doesn't work
how did you search for zsh auto suggestions through some dialog that came from the bottom of your machine.. that was cool .. please let me know o would like to use that as well ..!!
Nothing fancy there. It was my web browser. I switched from Firefox/Chrome to this awesome keyboard driven python based web browser long ago. If you still haven't figured out its name, it is Qutebrowser.
Thanks for the video venkat, i followed all the steps but 1. how to install terraform and kubectl, i get zsh: command not found: kubectl could you please tell us how to pass through this error. 2. how to hide /mnt/c/Users/username to display like $ or * or to any single letter.
Hi Nehar, thanks for watching. Whats your host operating system? Linux or are you using WSL in Windows? If you are on Linux you can install Zsh. Kubectl and terraform are just additional tools that has nothing to do with this video.
Hi, thanks for watching. Yes it will work in RedHat/CentOS or any rpm based distros as well. I think the font package in centos/rhel is called fontawesome-fonts.
@Just me and Opensource, I was wondering if you could show us some multi-tenancy (placing on plus client in the cluster with resources limits, quotas, and namespaces) in K8s? It would be very helpful! Advance thanks!
I'm still learning Bash, but I did all the tutorial, just to get more familiarized with the thing. On TMux, I manage to split the terminal, but I can´t move from one to another. I couldn't figure out why! Any insights? Sorry, dude. I'm a newbie yet.
Thanks after installing pimpmykali notice my zsh went away but thankfully this video help me get my life back 😃
Thanks for watching.
Just effective and perfect, thank you.
You're welcome!
Thank you :) Just if I want to change a new my choices, for instance I want to add the hour in the options I had, after the configuration we made into the .zshrc file how may I do ? I changed the line at ZSH=THEME="powerlevel10k/powerlevel10k" to reput it but it did not renitialize or ask me a new for my choices, it became as it was with my inital choices (minimalist, no icon etc), can you enlighten me ? @@justmeandopensource
Just run “p10k configure” which will start the prompt customisation process again.
Best video i have watched today. My terminal rocks now
Many thanks for watching.
I was waiting for it since a long time, wonderful!!!
Sorry that I kept you waiting. Thanks for watching. Cheers.
THANK you for keeping the promise you made to me for this video!!!!
My pleasure. Thanks for watching. Cheers.
@@justmeandopensource how to resize and change the focus when you have multiple panes open with tumx and how to close an individual pan?
@@pivot4all The default tmux meta key is "ctrl+b" and then the action key. So if you are using the default configuration and you want to move focus to different panes, press "ctrl+b" first followed by the arrow key. If you are using my tmux configuration, its "alt+arrow" to move around. "ctrl+d" to close the current terminal. Or F12 if you are using my tmux config. Cheers.
I found it myself!
add the line: set -g mouse on (in the .tmux.conf file)
and then reopen the terminal
Press Ctrl + b and then move/resize it with 4 arrow keys
and F12 is to kill the active pane!
@@pivot4all Cool
This is the best video out there on terminal customization💎
Hi Yash, many thanks for watching.
It was a awesome video, bro. You covered lots of information in a single video, and the steps you showed are very clear to understand.
HI Sameer, thanks for watching.
Wanted video. Thank you again Venkat.
Hi Murat, thanks for watching.
Ventak your are my one and only source for everything opensource my guru 🙏 I will always be indebted to you!
I can understand how much you love these concepts as I do. So glad that you are finding my content useful. Cheers.
You've help me a lot. I just didn't know from where to begin.
Hi, No worries, thanks for watching.
Thanks bro that was really informative and love the fact you show each step clearly. Keep them coming.
Many thanks for watching. Cheers.
I have just started using ZSH so this is perfect video for me. You're awsome Venkat
Glad to hear that. I felt like I got into Zsh so late in my career.
Glad I found your channel, thanks for quality videos
Hi Mohammed, many thanks for your interest in my channel. Hope to provide more content that people like to watch and learn. Cheers.
Thankyou venkat. It's really helpful.
Hi Sunil, thanks for watching.
Thank you Venkat.
Hi Akash, thanks for watching. Cheers.
Thanks. Love it! The only problem I had was when using tmux, the powerlever10k theme was breaking
Thanks for watching. Yeah, I couldn’t get it 100% to my liking either. But satisfied with the result.
Very good tutorial, thanks. I have a question what is the bar at the bottom of the screen?
Hi, thanks for watching. Thats the polybar for the I3 tiling window manager on my host.
Pre-smashing the like.
You are a good TH-cam citizen :)
thanks bro your the besttttttt
Hi, thanks for watching. Cheers.
Great tutorial as always... Thanks 😁👍👏
Thanks for watching.
I'm quite new to Linux. Was wondering how to get the particular feature where you are typing for searching at 5:40.
Hi Anuj, thanks for watching. That is my Web Browser which is Qutebrowser. It is a keyboard driven browser and you saw me typing to open a new web page.
Excellent work. It is very helpful
Hi Sukhesh, thanks for watching. Cheers.
I was just going to ask about this!
Haha. Thanks for watching.
I've tried 3 times, I guess, to install it.
When we get to to the wisard, the only options shown are (r) and (q)
above it are the examples, but not the numbers to chose.
I used the logic of positioning but the end result wasn't what I expected.
Will try again, soon.
Again. Thanks for the video.
Thanks Venkat for always producing quality content. Awesome work .
Is there any setting to only allow adding working commands to the history ? for example - blocking any rubbish like asasasasa going in to the history ?
No. Unless you modify the history file and remove them.
Thank you Venkat!
Hi Juan, thanks for watching. Cheers.
This was great thank you
Awesome sauce! Thanks.
Many thanks for watching.
cool
excellent job.
during most videos you use a search application.
What would that application be?
Hi Juliano, thanks for watching. I guess what you are referring is my Web browser which is Qutebrowser. Its keyboard driven python based web browser.
This is awesome Venkat ,
1)How about navigation in tmux , and closing the windows ,
2) For CentOS installation instructions will be pretty much I believe except apt ?
Hi, thanks for watching.
I have changed the keybindings in tmux configuration for most operations. Check the tmux config file in my dotfiles repo for the keybinding for navigation.
Installation steps are mostly similar for centos.
Helpful video..
Hey where are you searching? What that search interface called?
Hi. Can you please tell me how to remove the desktop writing in terminal. Always when i search it looks always in the desktop
I already liked because guy uses arch
Another Archlinux fanboy :) Thanks for watching.
i cant get syntax highlight to work on my wsl. it looks like the command to copy is different?
I will have to check that. I don't have windows machine to try that at the moment.
@@justmeandopensource well everything else works fine so i suppose maybe the command might have changed? I've never used zsh on any of my real linux installations so i can't tell.
Hi Venkat,
Do you have any suggestion for following use case ? I have my terminal set up exactly how you have mentioned but I face one challenge all the time :
Use case :
1. Open the terminal , make connection to aws account (sets bunch of env variables like AWS_PROFILE,AWS_ACCESS_KEY_ID= etc ...)
2. Start tmux session and create few panes..
3. Env variables are shared on all panes and everything works as expected.
4. Now when the aws connection expires and if you refresh the connection on any pane then it is not shared across all other open panes. so the only solution to get it working is either make the connection on each pane so that env vars are available on each pane or close tmux session , create aws connection again and then start a new session and create multiple panes.
Hi Surendra, what do you mean when you say "make connection to aws account"?
@@justmeandopensource Just a normal aws cli connection to get access to aws resources .
I have following script to provide access to aws resources
#!/bin/bash
mfa_arn="arn:aws:iam:::mfa/"
aws_target_account=""
echo "Enter valid token for your MFA ($mfa_arn):"
read -r token
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
export AWS_DEFAULT_REGION=us-east-1
rm -f token.json
aws sts get-session-token --serial-number $mfa_arn --token-code $token --profile dev-account > token.json
chmod 400 token.json
export AWS_ACCESS_KEY_ID=$(jq -r '.Credentials.AccessKeyId' token.json)
export AWS_SECRET_ACCESS_KEY=$(jq -r '.Credentials.SecretAccessKey' token.json)
export AWS_SESSION_TOKEN=$(jq -r '.Credentials.SessionToken' token.json)
rm -f token.json
# assume admin role from
aws sts assume-role --role-arn "arn:aws:iam:::role/admin" --role-session-name dev-admin-role > role_token.json
chmod 400 role_token.json
export AWS_ACCESS_KEY_ID=$(jq -r '.Credentials.AccessKeyId' role_token.json)
export AWS_SECRET_ACCESS_KEY=$(jq -r '.Credentials.SecretAccessKey' role_token.json)
export AWS_SESSION_TOKEN=$(jq -r '.Credentials.SessionToken' role_token.json)
rm -f role_token.json
export AWS_PROFILE=$aws_target_account
As you can notice , in the end the script exports coulple of env variables which enables the connection to aws account. So basically the question is how to share environment variables across panes in a tmux session when those are refreshed again with new values ..?
Let's take the aws out of this to simplify the question.
1. Connect to terminal
2. set an env variable like export city=london
3. start a tmux session and create 2 panes
4. Run echo $city in both panes and it will show london
5. update the city of delhi in one pane . export city=delhi
6. Run echo $city in other pane, it will continue to show london
7. Now the question is how to set city value to delhi in both the panes by updating it in one place ?
@@surensingh123 Okay. You got to understand that each pane is an individual shell process. You start with a shell where you export a variable. From that shell you launch two child shells (which are tmux panes) which will inherit those variables. But if you override them in the child shell, it affects only that child shell. Hope it makes sense.
@@justmeandopensource yeah, that was clear already. I was wondering if there is a possibility to achieve the behavior that I mentioned. Thanks for your time.
how do you switch between split command lines in your tmux config?
Those are panes. I create vertical or horizontal panes and can switch between different panes with custom keyboard shortcut. I mapped Alt+[Left/Right/Up/Down] to move to different panes. Thanks for watching this video.
Vwnkat, as others already stated, your videos rock. Being a Windows user and Linux newbie I have one question: I noticed you using a "open -t github ...." to search at the ":" prompt. So, is it something native to Linux, Hour shel, or a Linux program? Whould you share this part of your environment? Thanks.
Hi B S, thanks for watching.
Thats actually my web browser which is Qutebrowser (www.qutebrowser.org/). It is a keyboard driven browser so you can do all common stuff with key bindings.
@@justmeandopensource thank you.
@@MrNoBSgiven you are welcome
i'm facing issue on tmux profile look
when i execute tmux ,it doesn't come as same profile settings ,which is been in zshell ,but the tmux options are working like f6,f5 etc.
Little bit weird .
do you have any idea ?
very good tutorial
Thanks for watching.
that is awesome. thanks
Hi Ronaldo, Thanks for watching.
Thanks Venkat for producing ever great videos. May i ask more regarding your laptop testing environment? I saw you use both kvm and lxd, regarding lxd do you suggest to install it inside a kvm vm or directly on the host where you already have kvm? thank you in advance
Hi Manuel, I have Arch Linux on my Laptop and got Kvm/libvirt and lxc/lxd installed. Lxc/lxd is directly installed on the host and not on a VM. I am running Linux OS, why should I bother install lxd on a VM?
@@justmeandopensource thank you for your reply, maybe i misurunderstood configuration in other videos, looked like lxc/lxd was installed on a VM, thank you again for the clarification
No worries.
Awesome video!!
Hi, many thanks for watching.
I saw, 1 year ago, you did use APT. A good improvement would be use Nala instead.
Thanks for the video.
Thanks for the tip! I don't use apt based distributions. This video was just for demonstration purpose. My actual set up is Arch based. Thanks for watching.
Great. How can we switch cursor between multiple tabs or windows in tmux mode?
Not sure what you mean by switch cursor but if you want to switch to another pane its one of Alt + arrow keys.
Thanks for quick solution!
@@chetansogra8452 no problem.
The curl and wget commands of ohmyzsh does not work...
Nice work!
Hi Stalyn, thanks for watching.
I have one more question, how can I set my default shell to start up tmux? thanks in advance
I have find this solution on Ubuntu, go to terminal preferences, default profile, command menu, check run a custom command instead of my shell, and put tmux as custom command
@@tomw0w Perfect. I would have done the same.
One more thing upset me, a little, as I'm still learning Linux.
The prompt shows where we are, but when we hit enter for a "ls" command, for example, that one changes, and no more shows the "directory" where we applied the "ls" command.
I really would think useful if it maintains the prompt in "full mode".
another great video
I'm on a M1 mac pro, running ubuntu arm64 in parallel desktop 18
followed everything then got to tmux, I couldn't get f5, f6,f10 to work. I set cmd+l for f5 , cmd+v for f6 and cmd+s for f10.
they only worked once while I was in the terminal. I exit out and go back it doesn't work
yo bro please i cant find plugins thing in zsh pls
help
how did you search for zsh auto suggestions through some dialog that came from the bottom of your machine.. that was cool .. please let me know o would like to use that as well ..!!
Nothing fancy there. It was my web browser. I switched from Firefox/Chrome to this awesome keyboard driven python based web browser long ago. If you still haven't figured out its name, it is Qutebrowser.
@@justmeandopensource aaahh okkkaayyy .. Thanks for the reply
@@ShreyasDangetechie You are welcome. Cheers.
Thanks for the video venkat,
i followed all the steps but
1. how to install terraform and kubectl, i get zsh: command not found: kubectl
could you please tell us how to pass through this error.
2. how to hide /mnt/c/Users/username to display like $ or * or to any single letter.
Hi Nehar, thanks for watching.
Whats your host operating system? Linux or are you using WSL in Windows?
If you are on Linux you can install Zsh. Kubectl and terraform are just additional tools that has nothing to do with this video.
@@justmeandopensource Thanks for your quick response ,
i have sorted out the additional tools,
host OS is windows 10. using WSL2.
@@sunnynehar Cool
Excellent, will this same will work RedHat Distribution as well ?
Hi, thanks for watching. Yes it will work in RedHat/CentOS or any rpm based distros as well.
I think the font package in centos/rhel is called fontawesome-fonts.
@@justmeandopensource thanks Venkat, what are you using while searching on web what is that package I never seen that.
@@expirytrader5802 Nothing special, its just my browser. I use Qutebrowser which is keyboard driven and more like using vim shortcuts.
Hello friend, can it be applied on mac OS?
Yes ofcourse. Thanks for watching.
Like! Like! Like!
Thanks for watching Alex.
@Just me and Opensource, I was wondering if you could show us some multi-tenancy (placing on plus client in the cluster with resources limits, quotas, and namespaces) in K8s?
It would be very helpful! Advance thanks!
I will see. I have done videos on resource limits and quotas I believe.
@@justmeandopensource can I have links to those?
and Please do make new one using k3d as it allows one plus node on local machine :)
@@pivot4all th-cam.com/video/4C-0idGOi2A/w-d-xo.html
I'm still learning Bash, but I did all the tutorial, just to get more familiarized with the thing.
On TMux, I manage to split the terminal, but I can´t move from one to another.
I couldn't figure out why! Any insights?
Sorry, dude. I'm a newbie yet.
Hi Mauro, thanks for watching. It would be " Ctrl + B " and the arrow keys to navigate between the splits in Tmux.
@@justmeandopensource Thanks!
@@maurolimaok You are welcome.
appreciate
Thanks for watching Arun.
What web browser does he use?
Qutebrowser
venkat nagappan you are sure bro
:)
I wonder why you are not going to use Powerline again.
I like minimalism wherever possible. Powerline takes too much of attention, hence moved away from using it.
Good
Is there a write up somewhere so I can go on my own pace, I can't be watching videos at work...
@@apurugganan sorry no blog or anything for this.
10:22 sudo apt install fonts-font-awesome
sudo yum install fontawesome-fonts
how about oh-my-tmux?
This one? github.com/gpakosz/.tmux