Hi. I’ve been using powerlevel10k for a long time, but a few days ago, I decided I wanted to customize it a bit. I opened the .p10k.zsh file, and I was shocked. It’s really massive, with TONS of options. I’ve been digging through for a few hours already, and it’s absolutely amazing how much you can customize it without actually programming anything. I was wondering what other people are using. So my questions are:
- Do you customize your shell prompt?
- If yes, do you use some framework or pre-made theme, or do you just configure it the vanilla way in your bashrc/zshrc/…
- How is your experiences with it so far?
- Share screenshot of your prompts, please (Sadly, my prompt is currently half done, so I can’t really share it)
Fish shell with a built-in theme
starship.rs on zsh
I used to color my prompt depending on which server I was connected to (ssh), and a different color scheme for prod, dev and local. But that was a long time ago and the script is buried somewhere, also I don’t stay ssh’d to nearly as many places as I did back then. But I did like it, I’d use it now if I had it.
Custom PROMPT variable in my .zshrc. Similar format in .bashrc, but uses PS1 instead.
Prompt shows git branch, italics and custom colors/characters. Shows a hanging arrow on a newline (i know, wasted newlines are blasphemy to some, but I like it).
Renders nicely in my custom compiled suckless terminal using monospace font.
PROMPT='%B%F{blue}[ %B%F{white}$(tput sitm)'%1~'$(tput sgr0)$(tput bold)%B%F{blue}]$(tput sitm)$ %B%F{white}$(tput setaf 5)${vcs_info_msg_0_}%B%F$(tput sgr0)$(tput setaf 4)$(tput bold) └─>%B%F{white} '
PS1="> "
Currently, I use starship, but I have considered switching to a regular PS1 or similar setup, it’s just that I can’t get the colours right when using PS1.
zsh with prezto and default prompt. I’ve customized a bit, but the only change I made to the prompt was to replace “…” (three periods) with “…” (ellipsis unicode) since that makes it more compact with a monospace font. I really like the async loading of git status, so I don’t have to wait for the command to run before the prompt prints.
Man, yet another visual/customization tool with not a single screenshot in Readme. Smh
There actually is a screenshot of the the prompt in the readme, but it’s quite small so easy to miss :)
I use budspencer theme on fish. https://github.com/oh-my-fish/oh-my-fish/blob/master/docs/Themes.md#budspencer-theme It looks cool and yellow, which I like. I prints the path on the far right and parent folders are printed only with initial letter, so it doesn’t take 2 lines in the shell and it ends up pretty short. It also has git integration and some budspencer exclusive commands to perform some cools actions, I don’t care about and I have never used. Also, I like that command errors are displayed as ✔ or ✘ on the next prompt. It also prints the time the last command has been running. I use vi keybidings, so prompt color changes when I change the mode feel cool. I would also like to have the execution time for every command, but I have another theme for that I don’t remember the name of on my work machine.
Yes, I use starship with nushell.
How is Nushell? Is it stable?
There are some breaking changes made to config sometimes, it’s v0.x after all.
Starship is great! I use it with zsh
And i use it with fish :)
I use Zsh with the Oh My Zsh! framework, and I use a different theme depending on which subuserland I’m in, by customising
~/.zshrc
. For example, I use the gentoo theme on Debian and its derivatives, agnoster on NixOS, darkblood on Arch, strug for Mageia, apple on my macOS device, aussiegeek on FreeBSD, and gallifrey on OpenBSD. Different themes helps me remember which package manager to use and which distro-specific commands will work.I’ll send some screenshots in a bit, when I boot up my PC.
I like Zsh because of its tab completion and command history. I also quite like its plugins.
Before anyone asks, I have tried Fish before, and I prefer Zsh. I have tried configuring Bash before, and I prefer Zsh. I have played with Ksh and Tcsh on BSD, and I prefer Zsh. I used PowerShell a long time ago, and I prefer Zsh.
Standard Bash with a twist:
[ /full/path/~-prefixed where possible ] user@short-hostname $ _
(Underscore = cursor, not part of prompt, in case that’s not obvious.)
It’s similar enough to the most common Bash prompt that I don’t feel totally alienated on a different system but different enough to be unique / useful.
The carriage return is deliberate. Paths can often get quite long in my homedir (if not other places), even with the
~
abbreviations. I can’t imagine anyone likes starting to type a command more than halfway across a screen because of a long path; this was my solution.The spacing is deliberate too. The brackets are hard to distinguish without the spaces either side of the path. On the second line, the 1-char indent and the spaces around the obligatory
$
were the layout I found most pleasing.There are embedded colour codes, but it’s designed so that it looks fine without them, just in case.
As for other configuration, I use whatever comes with the distro I’m using, especially any command-completion, etc.
How did you do it? I’ve been wanting to do that, but I’ve been busy and haven’t had the time 😿
custom, baby! based off starship, but half the latency
I made two go programas to make my prompt
It’s a pwd with user customization, like colors and names, an inline git status and then the exit code of the last command
I’m in the process of remaking them tho, since they used a shitty go preprocessor that I no longer maintain.
deleted by creator
I’m using guake
I like that it’s just the F12 key away then F11 to expand to full window. Supports multiple tabs.
Anyone using guake?
I think you misunderstood the question.
Completely did! Thanks for being kind.
My shell prompt is stock and gets really long sometimes
I’m about to install Debian and try some other desktop environments… And maybe I’ll play with my shell prompt later.