this post was submitted on 27 Jul 2023
20 points (95.5% liked)

Linux

5372 readers
33 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
 

I was curious as to what prompts people find are the best for development? I'm looking for a change from the generic debian:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Which yields:

dell-xps-13@pop-os:~$

top 16 comments
sorted by: hot top controversial new old
[–] quixoticWoodpecker@mander.xyz 14 points 1 year ago (1 children)

Personally, I like starship, and how it's consistent across different shells. I mostly use defaults, but with line break before command.

[–] GauravDas@programming.dev 3 points 1 year ago (1 children)

I wasn't aware of starship. It looks great and even supports Powershell! Do you have any font recommendations to go along with it?

[–] quixoticWoodpecker@mander.xyz 4 points 1 year ago

I use Fira Code, but any font patched with Nerd Fonts will do.

[–] Hexarei@programming.dev 13 points 1 year ago (1 children)

I use zsh for my shell, with powerlevel10k as my prompt. It's gorgeous and has an interactice condigurator on first start. It includes stuff like git repo branch and status, python venv, aws profile... I've used it for years and loved it the whole time.

Here's what mine looks like

[–] Andy@programming.dev 7 points 1 year ago

No doubt p10k is excellent, and the dev knows what he's doing and helps others a lot.

Another great zsh prompt with a simpler implementation is agkozak's: https://github.com/agkozak/agkozak-zsh-prompt

[–] echindod@programming.dev 5 points 1 year ago

I wrote my own! But you probably don't want to use it, I am sure it only works for me. But hey! It was fun! https://github.com/e2dubba/liteprompt

[–] odium@programming.dev 4 points 1 year ago

Fish with starship

[–] backhdlp@lemmy.blahaj.zone 3 points 1 year ago (1 children)

I have randomized oh-my-zsh prompts when using zsh, and the default starship prompt when using bash

[–] zygo_histo_morpheus@programming.dev 3 points 1 year ago (1 children)

Do you have a random oh-my-zsh prompt everytime you use zsh? That sounds maddening haha, what's the appeal?

[–] backhdlp@lemmy.blahaj.zone 6 points 1 year ago (1 children)

Like many things, I have no idea why I'm doing it.

[–] anzo@programming.dev 1 points 1 year ago

Sounds fun! 😊

[–] Rade0nfighter@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

No so much a prompt but I love Neofetch.

Looks nice with starship as well - https://itsfoss.com/starship/.

[–] ExperimentalGuy@programming.dev 1 points 1 year ago (1 children)
[–] darcy@sh.itjust.works 6 points 1 year ago

op means shell prompt

[–] jw13@beehaw.org 1 points 1 year ago

I use Liquid Prompt with the powerline theme.