nixers
Your PROMPT - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Desktop Customization, Efficiency, and Aesthetics (https://nixers.net/Forum-Desktop-Customization-Efficiency-and-Aesthetics)
+--- Forum: Desktop Customization & Workflow (https://nixers.net/Forum-Desktop-Customization-Workflow)
+--- Thread: Your PROMPT (/Thread-Your-PROMPT)
Pages: 1 2


Your PROMPT - venam - 24-10-2012

Hello *nixer,
So here we go: "Show us your PROMPT"


here my old one:
[Image: 9RdS]

and my current:
[Image: Kb3FTz]

The configs might change if you are using a different shell so posting the configs will be useless.
Reproducing the same PROMPT should not be that hard.

Only post the prompt without the whole desktop and no spoilers.


RE: Your PROMPT - simon - 24-10-2012

[Image: 4yx]


RE: Your PROMPT - fb0x - 24-10-2012

[Image: 2012-10-24-180543688x328.png]

PS1="%{%B$fg[white]%}[%{$fg[grey]%}%~%{%B$fg[white]%}]%{%B$fg[white]%}--%{$fg[yellow]%}» %{$reset_color%}"


RE: Your PROMPT - crshd - 24-10-2012

1. Insert mode
2. Version Control
3. Normal mode
4. Insert mode
5. Error Code

Spiced up with syntax highlighting.

[Image: SKAuj.png]


RE: Your PROMPT - Mafia - 24-10-2012

My last prompt before my screen broke:
Zsh.

[Image: EdTIB.png]

[Image: YlH4r.png]


RE: Your PROMPT - bash - 20-11-2012

(24-10-2012, 02:10 PM)Mafia Wrote: My last prompt before my screen broke:
Zsh.

[Image: EdTIB.png]

[Image: YlH4r.png]

You have the sexiest console ever!


RE: Your PROMPT - gurhush - 20-11-2012

Might as well revive this thread

[Image: RqH5g.png]


RE: Your PROMPT - zygotb - 21-11-2012

Same old shit as before. Same as 20 years ago in DOS.

[Image: L1mfb.jpg]


RE: Your PROMPT - Mafia - 21-11-2012

(20-11-2012, 05:18 PM)bash Wrote:
(24-10-2012, 02:10 PM)Mafia Wrote: My last prompt before my screen broke:
Zsh.

[Image: EdTIB.png]

[Image: YlH4r.png]

You have the sexiest console ever!

Thanks, I also love it very much.

(20-11-2012, 05:55 PM)NeoTerra Wrote: Nice Mafia. Also the first two images in this thread weren't working...

Hmm, not sure why. It works great for me, and worked for the person above you. And they are the same images from HF that work well. Maybe it's you 0.0


RE: Your PROMPT - crshd - 21-11-2012

Back to three-line prompts:

[Image: tmpscrot.png]


RE: Your PROMPT - gurhush - 09-12-2012

[Image: s1yNH.png]


RE: Your PROMPT - TheHotBot - 09-12-2012

[Image: Pj7W4.png]

My term, just a simple one.
figlet/toilet and a network tester against my server to see if it is online or not.


RE: Your PROMPT - yrmt - 09-12-2012

![](http://i.imgur.com/8gvU8.png)


RE: Your PROMPT - crshd - 09-12-2012

Purple? You're not running Ubuntu, are you?


RE: Your PROMPT - yrmt - 09-12-2012

heh it's iTerm almost default configs.


RE: Your PROMPT - yrmt - 13-12-2012

![](http://paste.xinu.at/B8loKC/)

ricing is fun


RE: Your PROMPT - crshd - 14-12-2012

You got drugs at home? Don't let the Feds see that...


RE: Your PROMPT - gurhush - 24-12-2012

(09-12-2012, 09:50 AM)Beastie Wrote: ![](http://i.imgur.com/8gvU8.png)

What font is that? Looks nice.


RE: Your PROMPT - yrmt - 24-12-2012

(24-12-2012, 02:57 PM)gurhush Wrote:
(09-12-2012, 09:50 AM)Beastie Wrote: ![](http://i.imgur.com/8gvU8.png)

What font is that? Looks nice.

It's pragmata.


RE: Your PROMPT - gurhush - 25-12-2012

[Image: MjXuU.png]


RE: Your PROMPT - gurhush - 09-01-2013

[Image: HqchQ.png]


RE: Your PROMPT - Ivyl - 12-01-2013

I use zsh with pretty simple prompt. I have to include hostname there since I ssh a lot.

What's fancy about it is VCS support + Vim mode hacks.

That's how my prompt looks in insert mode (which is default):
[Image: vZ2tvZQ]

That's how my prompt looks in normal mode (after esc/ctrl-[ ):
[Image: vZ2tvZAi]
Works well with tmux.

Inside git repository (works with others too):
[Image: vZ2tvZQ]
those ?! indicates what changed and does we have stagged changes, unstaged, modified files, untraced files, etc.

[My configuration](https://github.com/ivyl/zsh-config/blob/master/prompt.zsh).


RE: Your PROMPT - crshd - 14-01-2013

Did some slight modifications:

Default:
[Image: zsh_normal.png]

Debug mode:
[Image: zsh_debug.png]

Active Python virtualenv:
[Image: zsh_venv.png]

Error code:
[Image: zsh_error.png]

VCS status:
[Image: zsh_git.png]

Background jobs:
[Image: zsh_jobs.png]

ZLE Vim "Normal" mode:
[Image: zsh_vim.png]

Code:
setprompt() {
    local IT=${terminfo[sitm]}${terminfo[bold]}
    local ST=${terminfo[sgr0]}${terminfo[ritm]}
#    local FMT_BRANCH="%F{9}(%s:%F{7}%{$IT%}%r%{$ST%}%F{9}) %F{11}%B%b %K{235}%{$IT%}%u%c%{$ST%}%k
    local FMT_BRANCH="%F{9}(%s:%F{7}%{$IT%}%r%{$ST%}%F{9}) %F{11}%B%b %K{0}%{$IT%}%u%c%{$ST%}%k
"
    local FMT_ACTION="(%F{3}%a%f)"
    local FMT_PATH="%F{1}%R%F{2}/%S%f"

    local RETURN="%(?..%F{9}%B!%b%f%F{1}%?%f )"
    local NAME="%F{4}%B%n%b%f"
    local HOST="%F{1}%B%m%b%f"
    local PATH="%F{8}[%F{3}%40<…<%~%<<%F{8}]%f"
    local JOBS="%(1j.%K{1}%F{235}%B%j%b%f%k .)"
    local VIM=${${KEYMAP/vicmd/%K{2}%F{0} N %f%k }/(main|viins)/}

    local DE=${DEBUG:+%F{9}DEBUG%f }
    local VENV=${VIRTUAL_ENV:+%F{3}VENV%f }
    PROMPT="${vcs_info_msg_0_}${VIM}${RETURN}${JOBS}${VENV}${DE}${NAME}%F{8}@%f${HOST}${PATH}
%B%#%b "
    RPROMPT=""
    PS2=%_

    # vcs_info
    zstyle ':vcs_info:*'                      enable git hg svn
    zstyle ':vcs_info:*' check-for-changes true
    zstyle ':vcs_info:*' unstagedstr '%F{62}D%F{237}IRTY%f'
    zstyle ':vcs_info:*' stagedstr '%F{62}S%F{237}TAGED'
    zstyle ':vcs_info:*' actionformats "${FMT_BRANCH}${FMT_ACTION}" "zsh: %r"
    zstyle ':vcs_info:*' formats       "${FMT_BRANCH}"              "zsh: %r"
    zstyle ':vcs_info:*' nvcsformats   ""                           "%~"
}

function zle-line-init zle-keymap-select {
    setprompt
    zle reset-prompt
}

zle -N zle-line-init
zle -N zle-keymap-select



RE: Your PROMPT - yrmt - 14-01-2013

Simplicity itself:

[Image: GDOcp.png]



RE: Your PROMPT - Mafia - 14-01-2013

Ewwwyyy Beastie..
crshd, now he has the idea :)


RE: Your PROMPT - eye - 18-01-2013

[Image: WcBDas.jpg]


RE: Your PROMPT - darthlukan - 04-10-2015

Here's to necroing threads :P

My current (zsh) prompt:

[Image: 5jHNAX3.png]

Explanation: The green "dotted box" represents the user, because the user (dot) lives within a boxed-in set of permissions. Root gets the lightning bolt because "power."

It sounded more clever in my head...


RE: Your PROMPT - ashen - 04-10-2015

Also showing off my favorite little tab completion script, but I like to keep it basic. I do have an issue or two here and there with the script that checks whether I'm in a git repository, but I'm too lazy to fix it.

[Image: VxDb.png]


RE: Your PROMPT - Mafia - 04-10-2015

Tab completion is so nice. Cute prompt.


RE: Your PROMPT - josuah - 03-04-2016

I had multiple prompts. My first was 4 lines! Furthermore, I am using bash (just because I do not always work on my machine and bash is everywhere), so each tab was redisplaying these 4 lines + the completion!

- Empty line
- A whol useless delimiter line ──────
- The time of execution (current time), directory, git branch.
- number of jobs, last error number green or red, actual prompt string: >

A workaround was to use PROMPT_FUNCTION='_prompt', and in the prompt function, there were a call to printf, that has the advantage to:

- Permit to print a right prompt;
- Permit to print some string anywhere in the terminal, like at the top, to display the path, time, etc there instead of bloating the prompt;
- Set the terminal window title;
- Is not redisplayed after each completion;
- Can catch the last exit job.

I removed the ──────. Following <a href="http://github.com/dcat/swm">dcat screen</a> and z3bra advises, I removed even the path, and now, and it is as small as this:

<img src="http://i.imgur.com/whozZpC.png">

A bit like gurhush but still with a newline for clarity, and darthlukan, but with colors to indicate the different states rather than strings. I use the same in my <code><a href="http://blog.z3bra.org/2013/11/plain-old-mails.html">.mailrc</a></code>.

To get colors in the bash completion, you can ad this readline option in you .inputrc:

<pre>set colored-stats on</pre>