[Question] Which shell prompt do you use and why?

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)
sebastiancarlos,

https://lemmy.sdf.org/pictrs/image/938229ad-4c04-413b-b2ae-18925e5b0e6e.png

.bashrc:


<span style="color:#323232;"># Prompt
</span><span style="color:#323232;"># "Make it simple, just the dollar sign"
</span><span style="color:#323232;"># "Say no more, fam"
</span><span style="color:#323232;"># - if error code is not 0, then prepend [N] where N is the error code
</span><span style="color:#323232;"># - if user is root, use red and #
</span><span style="color:#323232;">blue='e[34m'
</span><span style="color:#323232;">red='e[31m'
</span><span style="color:#323232;">bold='e[1m'
</span><span style="color:#323232;">reset='e[0m'
</span><span style="color:#323232;">PS1='$( status=$?; [ $status -ne 0 ] &amp;&amp; echo "[$status] ")['"$blue""$bold"']$['"$reset"'] '
</span><span style="color:#323232;">
</span><span style="color:#323232;">if [[ $EUID -eq 0 ]]; then
</span><span style="color:#323232;">  PS1='$( status=$?; [ $status -ne 0 ] &amp;&amp; echo "[$status] ")['"$red""$bold"']#['"$reset"'] '
</span><span style="color:#323232;">fi
</span>

.inputrc:


<span style="color:#323232;"># vi mode, change to 'emacs' here if you prefer
</span><span style="color:#323232;">set editing-mode vi
</span><span style="color:#323232;">
</span><span style="color:#323232;"># vi INSERT prompt
</span><span style="color:#323232;">set vi-ins-mode-string "1e[30;44m2 INS 1e[0m2 "
</span><span style="color:#323232;">
</span><span style="color:#323232;"># vi NORMAL prompt
</span><span style="color:#323232;">set vi-cmd-mode-string "1e[30;47m2 NOR 1e[0m2 "
</span>
hellfire103,
@hellfire103@sopuli.xyz avatar

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.

wgs,
@wgs@lemmy.sdf.org avatar

I’m on the boring side…

https://lemmy.sdf.org/pictrs/image/8c7134f6-39df-43d2-a6d4-9b4fb8a4ba5c.png


<span style="color:#323232;">PS1="% "
</span>

I like it though, it gives me more room for commands !

netchami,

I’ve been using zsh for some time, but I finally switched to fish. I also checked out Nushell, it lacks some features, but it’s really interesting. On zsh I was using Powerlevel10k, on Fish I used oh-my-fish with the shellder theme before I switched to Starship. I’m very happy with this setup. My prompt looks like this: https://sh.itjust.works/pictrs/image/9e0ef0c1-d121-44c1-be99-4d03b19af6bb.webp

My Terminal Emulator of choice is kitty, the font is Monocraft.

starman,
@starman@programming.dev avatar

Yes, I use starship with nushell.

winety,
@winety@communick.news avatar

How is Nushell? Is it stable?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #