You are not logged in.

#1 2020-12-24 08:19:31

PrabhatProxy
Member
Registered: 2020-12-24
Posts: 1

Modify Terminal Like this

How can I make my terminal like this -> https://drive.google.com/file/d/17Cfphm … p=drivesdk

Offline

#2 2020-12-24 09:09:13

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 95

Re: Modify Terminal Like this

Offline

#3 2020-12-24 09:26:53

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: Modify Terminal Like this

PrabhatProxy wrote:

How can I make my terminal like this -> https://drive.google.com/file/d/17Cfphm … p=drivesdk

I do not have exactly the same look of the terminal. Mine looks more like this: https://duckduckgo.com/?q=powerlevel+10 … ntrast.png

However, you can customise it to suit you. It is powerlevel10k + zsh shell. You can really play with it and get an amazing terminal look. Definitely check it out.
I will send you a video that would help you setting zsh+powerlevel10k:
https://www.youtube.com/watch?v=ynL1fYncZ1E

And a cheat sheet:
https://christitus.com/zsh/

Arch wiki page:
https://wiki.archlinux.org/index.php/Zsh

You can choose whether you want single line or double line design and many other options.

Hope this helped.


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#4 2020-12-24 13:25:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,645

Re: Modify Terminal Like this

That's the PS1 prompt and it doesn't require a specific shell, font or whatever to get what's visible in the screenshot.
https://wiki.archlinux.org/index.php/Ba … tomization

Here's a bunch of control chars you can use:
https://en.wikipedia.org/wiki/Box-drawing_character

For the more fancy stuff as in othersamo_'s link: https://wiki.archlinux.org/index.php/Powerline

Online

#5 2020-12-24 14:01:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,512
Website

Re: Modify Terminal Like this

Um ... "It doesn't require a specific shell ... <link-to-BASH-shell-specific-page>"


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-12-24 14:16:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,645

Re: Modify Terminal Like this

Hey, I'm not responsible for the structure of the arch wiki :-P

There's no general wiki page on the PS1, but
https://en.wikipedia.org/wiki/Command-l … and_prompt

(also let's be real, OP is either using bash or maybe zsh - where this trivial PS1 syntax will apply. This should™ even work w/ ash)

Online

#7 2020-12-24 14:29:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,512
Website

Re: Modify Terminal Like this

I was being a bit facetious due to the odd juxtaposition - and I looked for good generic sources for PS1 configuration ... my search didn't turn up much of value.  However, most "customize your BASH prompt" pages found via a web search actually are generic, despite referring only to BASH.  A fair bit of the wiki page you linked to though, is really is BASH-specific (e.g. PROMPT_COMMAND, PS3 + PS4).

Aside: I really don't get why some guides make so much use of tput instead of ANSI sequences.  Some user's PS1s end up running several dozen subshells and several dozen instances of tput just to get colors that ANSI codes would do much more efficiently and will a shorter PS1 string.

Last edited by Trilby (2020-12-24 14:30:35)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2020-12-24 16:17:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,645

Re: Modify Terminal Like this

Trilby wrote:

I really don't get why some guides make so much use of tput

terminfo fuckups, I assume.
And then copy and paste, of course.

Happy Festivus.

Online

#9 2020-12-25 22:18:35

GSMiller
Member
Registered: 2020-11-23
Posts: 75

Re: Modify Terminal Like this

PrabhatProxy, be careful how you set your PS1 if bash isn't your main shell, as Trilby tells you:

Trilby wrote:

Um ... "It doesn't require a specific shell ... <link-to-BASH-shell-specific-page>"


A dog is a man's best friend.

Offline

Board footer

Powered by FluxBB