Make Windows Terminal look amazing!
Вставка
- Опубліковано 27 лип 2024
- I will show you how to customize your Windows Terminal (could also be used in Linux or Windows 10). We set up color schemes, fonts, and a cool-looking prompt that you can use for any shell (like PowerShell, zsh, or bash in WSL2) #Windows #WindowsTerminal #WSL2
My dot files and settings: github.com/christianlempa/dot...
Teleport-*: goteleport.com/thedigitallife
Follow me:
TWITTER: / christianlempa
INSTAGRAM: / christianlempa
DISCORD: / discord
GITHUB: github.com/christianlempa
PATREON: / christianlempa
MY EQUIPMENT: kit.co/christianlempa
Timestamps:
00:00 - Introduction
01:14 - Why use the Windows Terminal
02:23 - Use and configure the Windows Terminal
05:12 - Teleport (Advertisement-*)
05:58 - Use Nerd-Fonts
08:12 - Color Schemes
09:44 - Prompt for all OS and Shells
13:01 - Customize your Prompt
________________
All links with "*" are affiliate links.
Great video, I'm so glad this popped up on my feed.
Several hours well spent configuring and customising this across my WSL environments and standardising my terminals. Also led me to install and configure exa which I wasn't aware of but is great.
A warning to anyone that uses Defender for Endpoint and Attack Surface Reduction rules; starship.exe is blocked by "Block executable files from running unless they meet a prevalence, age, or trusted list criteria". I had to disable this to get it working. I'm hoping that MS implement a way to whitelist applications in the future.
I also wish there was a way to install Starship without Chocolatey, I don't really want to run/use Chocolatey, but I couldn't figure out how.
Thanks mate :)
Great content! Thanks for the ideas to customize the shell prompt and keep up your good work! ;)
Thank you! Of course I'll do :)
Woooww Broo!! AWESOMEEE I LOVE your customizations 💻✨
loving this windows dev ops WLS2 windows Terminal stuff. as a network eng who likes to run windows and game, its really cool being able to have a good Terminal and having all the linux tools with a great GUI
Thanks! Glad you like it 😁
Excellent Terminal Customs Idea’s
Thanks
You're welcome
I always love your customizations!
Edit: More than that, I love the starship prompt
Thank you so much!
Christian, you're an amazing dude. Thanks for your videos.
Thank you! :)
Thank you Christian, your customizations are VERY nice! What theme are you using in VSCode?
this terminal looks awesome 🎉
Thank you again for you videos Cristian! Your thoughts on oh-my-posh vs. starship? Personally I like oh-my-posh but it appears that starship-prompt offers more options.
Some timestamps that were especially helpful ( I will use these later this week, I will have a new laptop to configure )
- 15:05 character maps
- 16:00 distro logos
Thank you! Great feedback on the timestamps :)
I haven't tried out oh-my-posh, but I wanted to until someone recommended me starship. And to me personally starship looks a bit better and was very straightforward.
@@christianlempa Now having tried both, I think that the starship is just all around better. The problem with Posh is visual corruption in windows terminal, and that it can feel quite clunky and is generally less customizable.
timestamp 15:46 - colormap for bash, if you don't have/want zsh, the following bash shell function produces identical output.
function colormap() {
for c in {0..255}; do
let "d=($c+3)%6"
printf "\x1b[48;5;%dm \x1b[49m\x1b[38;5;%dm%03d \x1b[0;37;40m" $c $c $c
if [ "$d" -eq "0" ]; then echo ""; fi
done;
echo
}
Oh nice, awesome man! I'll add it to my .bashrc file on github :D Thanks!
This is exactly what I was stating to someone in the comments
Superb content, Hi Christian how did you customize your Warp terminal with the same purple texts/fonts? if you have a video could you point me to it.
Oh my this prompt customization is a rabbit hole... but thank you for introducing this
You're welcome! Go down the rabbit hole :D
Thats freaking Awesome 😁
Great channel!
great video, I've just trolled through the font sets but cannot find the curved corners you have used for the terminal prompts (in your starship.toml file, under the format section) could you advise the ascii code you used??
Is this the one you download from the microsoft store? im trying to customize the one that comes with windows 11, but when i try to open the settings it opens a json file in vs code and doesnt show much about customizing the app.
Love it!
Wow!! Great video!!
Thx! :)
Thank you Christian :)
You're welcome :)
Thanks for making this how to video! How does one do "run as different user" with Win Term?
Thank you very much, greetings from Argentina 😊
Thanks! Greetings from Ger :)
It is in evaluation mode? Any logs from our computers that goes to programmers? How did you add the windows logo to the prompt? Thanks
Never thought I'd live to see ricing on windoze
Awesome! Thanks! All working perfectly...
P.S. But at beginning my icons was smaller then yours - I fixed it with the differen font type - JetBrainsMono Nerd Font.
Glad it helped!
@@christianlempa AWESOME!
By the way. I add zsh-autosuggestions and it's working like a charming. But do not get history from console after relogin.
I was struggling with the same thing using the Hack NF...thanks for calling this out; switching to the JetBrains font fixed this for me too. Thanks again!
Thank you so much
I knew it had to be starship prompt when you said I use it everywhere. 😁
Haha that was the right guess :D
Nice! Welcome to the Starship prompt ;)
Thank you! Just looked nice on your terminal :D
hello, why does windows have two terminals cmd and powershell? what is the diference between them
First off, great video and love your setup. For PowerShell how are you setting the windows flag icon in the prompt? I see for the Linux distros you are using the script as you mentioned in the video. Are you setting the icon in the PS profile?
Hey thanks! Yes I set it in the profile.
Where are the icons from %userprofile%\WindowsTerminalIcons,
How do you use your script?
RemoteSigned
allrestrictive
unrerective
rectritive
Do you know why some fonts are not being interpreted by my PC even though NerdFonts has been installed?
I'm not sure if they've changed something, but after I installed it, I wanted to use it for SSH'ing to a Linux box.
Nope.
The option for Debian - Ctrl + Shift + 3 errors with a: [process exited with code 1 (0x00000001)]
This was when I was selecting the Terminal for Debian. From there, you actually need to install the WSL subsystem (Linux on top of Windows).
Installing this requires the Windows Virtual Machine Platform, which will prevent VirtualBox VMs from starting up.
Waste of time.
I using ubuntu WSL its says staship command not found after installing it to the /.local and setting /.local to PATH & Adding the bashrc command
I partially succeeded. But the problem I am facing is with ubuntu. I made my ubuntu look like how when you paste the code line needed in bashrc file. But I can't make it anything like how it is shown in this video. Like where should the location of zshrc file be in my windows pc? And also the .config file and starship.toml. By the way , I successfully decorated cmd and powershell as same as in the video.
Please help me out.
Hello and thank you for your awesome video. How to you share the config across all of your WSL distros? Once again thanks you for your time and help.
I'm using yadm.io, it's based on git and uses the same syntax to create a repo for your homefolder. Pretty useful.
Ubuntu and Powershell is missing from the cmd thing and it gives this error: Could not find your default profile in your list of profiles - using the first profile. Check to make sure the "defaultProfile" matches the GUID of one of your profiles.
hi, thank you for the video ! But how do you use an Ubuntu shell ? Wsl ? But with a wsl you have to install starship a second time to the wsl right? Thank you for your help :)
Awesome, although i have issues with your starship config you uploaded. All the icons are broken but im not sure if i miss them or if the upload is broken. Or if i have to do them all over ? Just wanted to use the same as you have.
Try out a different nerd-font. Sometimes the Icons are "smaller" or "overlap". I'm currently testing "JetBrainsMonoMedium Nerd Font", which works well.
where did you get the background image? Looks really nice, would like to have this too please.
Search Mr Robot Background
How to open windows terminal in drop down style with tabs?
Hi cool!!! i can't find home and lock symbol? can you help me? many thanks
great content!
Thx!
thanks for Teleport. amazing, and nice video thanks for sharing
Glad you liked it!
Hello Chris can you help me to add status prompt to see if i have an python3 virtual env active ?
Hi Christian, Does your Windows Dotfile has been change? I saw different json schemes color setting vs video, can you share the old one, thank you and great job !!👌
Your vs code's edges look like a round shape. how did you do it?
Great ... thanks 🙂
You're welcome 😊
How to add the files-theme-xcad.xaml file to have as a theme choice option? How to change each system logo to black and white, the same as yours?
How do I use your hackthebox custom theme for my zsh on Pop OS?
Could you tell me how to customize the file icons also
How do you make vscode show you the color square in the json?
its showing (starship::config): Unable to read config file content: stream did not contain valid UTF-8. please help
That is a wallpaper, where do you usually get them from?
Awesome and with the pane config, can we save it in case we restart the terminal?
Thanks mate! Yeah you can enable it in the settings under "When terminal starts"
Too bad, starship doesn't seem to install for me. At least my shell does not recognise any of the commands.
Yo, could you please make example for fish how to add the automatically distro select and where to set the env?
Sry I’m not using fish :(
I always like all your customizations
can we use zsh plugins with starship ?
I guess that should work, if you're refering to zsh-autosuggestions, etc. that works on my side
I would like to know how to install Arch with WSL. Could you share the guide to do that? Thanks
github.com/yuk7/ArchWSL
Do you know how to make the up key (to repeat a command) to filter based on suffix like on oh-my-zsh, if you type something like `git pu` and press up it only show commands that start with `git pu` is that possible with the starship? Thanks
I think it should be independet from the prompt, because it sounds like a function of zsh, which is of course fully supported in starship.
How can I obtain the "WindowsTerminalIcons" folder that you use?
Great work. Can you tell me what VSCode theme you are using?
Thanks! Sure I'm using my own one :D marketplace.visualstudio.com/items?itemName=xcad2k.vscode-thedigitallife
Very cool :)
Thanks :D
I really enjoyed the vid! What VS code theme were you using?
I built my own :) it’s called „the digital life“
I can’t find confing for setting!
What was the music?
How can i get your json file now?
love this!!!!!
thanks :D
Whats your vscode theme in this video? awesome colors
Great video. I was originally using oh-my-zsh. Starship looks good. still working my way through getting the perfect prompt and colour config. 1 question though. I am still unable to get the icons/emojis to work on my mac. any assistance would be appreciated.
Thank you mate :) On MacOS you just need to install the Font, and you need a terminal that supports changing the font. Check out my video about MacOS terminal: ua-cam.com/video/NfggT5enF4o/v-deo.html
Thank You
You're welcome! :)
I love this video tutorial, I have been been using chatgpt in the terminal and wondered if you found any way to have it auto read text. (the windows narrator is terrible and can't really read my terminal properly) Any suggestions on how to enable that in terminal?
Thank you so much! :)
Can you please add a link to the JSON file that you have currently in the demo since they look really good and well setup.
Added a link in the description to my dotfiles! Thanks ;)
I copied your starship file and everythign went fine! Except for one thing: the icon for the file types. Any idea what could be going wrong? I am using powershell and using the "ls" command to list them.
But it also did't worked on my ubuntu wsl2
The icons in the ls command don't come from starship, it's a separate application called "exa"
The only customization I have in my terminal is the Terminus font, otherwise I have made functions that are loaded when opening PowerShell that shows some unicode icons, I need to give Terminal a try, I only use PS7
is there a way to make ubuntu terminal look like this?
I'm sorry, I don't exactly understand does the same Starship install and conf work on poweshell and on ubuntu subsystem terminal or I'd have to install and conf it separately for each subsystem?
You'll need to install it once per OS, but invoke it on each shell, so powershell needs a different init script than bash or zsh
that is cool looking wallpaper.
do you have link for that?
Great video i'm confused zshrc file , i didn't found it my windows...
any alternatives of fish shell in windows?
Could you make a clear video tutorial to config this style of shells prompts ? Thanks in advance
What exactly are you looking for?
@@christianlempa I have a problem with the short name of Ubuntu on the Windows Terminal Tab, and other problem is when I run the Terminal Powershell in VS code, my current location and the word 'at' didn't have any spaces. Could you have any suggestions?
@@TVDramaHome same here any fixes ??
which vs code theme are you using?
How to display character map like yours? My Character Map started from "charmap" command seems to be very dumb.
It’s a command in my dotfiles you can find on GitHub :)
How to get my conda env to show up in this?
Nice! One question tho, where did you find these nice icons that we can see on the windows terminal tabs?
I'm not sure if I'm allowed to share them, but you could look at a website like icons8 f.e. ;)
@@christianlempa Thanks! Yes I used icons8 but some icons appear pixelated in the tab. anyway! keep it up!
@@Alex1996984 I think he's using a paid version because I'm facing the same pixel problem
@@Alex1996984 MS used to ship Windows Terminal with popular distro icons built-in. Although it is removed in later versions due to copyright issues.
Edit: it should be trademark issues, not copyright.
@@YousefMohamed-jb8bq you can change the icon for each terminal. Just find you suitable distro icon or even just any image you like.
Nice Guide!
Just one question: Do you have to transfer and install your starship config files onto every single server you want to ssh into?
Did you figure it out ?
yes
i couldnt find the json settings i am really sad for that but i really want it can anyone help me
I can't find the json file on your github @ 09:23 why did you remove the file? Anyway i like the themes tho.
I changed the repo to dotfiles-win, you find it on my GitHub page :)
Man, love your content and your wallpaper. Where is it from? Could you maybe pass me a link to a full res version? :)
Thank you so much :D I just downloaded it from google, when searching for Mr Robot wallpaper ;)
@@christianlempa Thanks. Will look it up!
How awesome unfortunate though I really liked that purple and blue theme
How do I find that wallpaper
Where did you get that white PowerShell Icon I can't find it
Icons8 ;)
where can i download that desktop wallpaper, it's amazing!
Just search for Mr Robot wallpaper :D
I now know a little bit more about what Windows Terminal can do. 😁😁😁
Awesome 😁
How did you add the other stuff? Aside from Command Prompt, PowerShell and Cloud Shell I don`t have any other command line.
I ask for Kali Linux, Ubuntu Linus and so.
I'll probably make some videos in the future about terminal tools, that I'm using. I'm still waiting though for a great version of exa on Windows. Then there will be a video coming about it :)
how do i make the 'starship.toml' file?
Could you please tell me your vscode theme ?
Thank you
You're welcome
How does he have those graphs in the Terminal? Are those Linux exclusive?