Users browsing this thread: 1 Guest(s)
venam
Administrators
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.
simon
Long time nixers
[Image: 4yx]
fb0x
Members
[Image: 2012-10-24-180543688x328.png]

PS1="%{%B$fg[white]%}[%{$fg[grey]%}%~%{%B$fg[white]%}]%{%B$fg[white]%}--%{$fg[yellow]%}» %{$reset_color%}"
crshd
Registered
1. Insert mode
2. Version Control
3. Normal mode
4. Insert mode
5. Error Code

Spiced up with syntax highlighting.

[Image: SKAuj.png]

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCA/IT d-(---)@ s+: a-- C+++(++++)$ UBL*+++ P+++>++++ L++ E W+++$ !N !o K !w !O M+>++ !V PS+++ PE !Y PGP+ !t-- !5 !X R@ tv- b+ DI D+ G e h r++ y+
------END GEEK CODE BLOCK------

Mafia
Long time nixers
My last prompt before my screen broke:
Zsh.

[Image: EdTIB.png]

[Image: YlH4r.png]
(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!
gurhush
Long time nixers
Might as well revive this thread

[Image: RqH5g.png]
zygotb
Long time nixers
Same old shit as before. Same as 20 years ago in DOS.

[Image: L1mfb.jpg]
Someone doesn't appreciate my php generated image!
Mafia
Long time nixers
(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
crshd
Registered
Back to three-line prompts:

[Image: tmpscrot.png]

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCA/IT d-(---)@ s+: a-- C+++(++++)$ UBL*+++ P+++>++++ L++ E W+++$ !N !o K !w !O M+>++ !V PS+++ PE !Y PGP+ !t-- !5 !X R@ tv- b+ DI D+ G e h r++ y+
------END GEEK CODE BLOCK------

gurhush
Long time nixers
[Image: s1yNH.png]
TheHotBot
Long time nixers
[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.
"TheHotBot" Aka NeverW8!

I can be seen on the IRC from time to time :)
yrmt
Grey Hair Nixers
crshd
Registered
Purple? You're not running Ubuntu, are you?

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCA/IT d-(---)@ s+: a-- C+++(++++)$ UBL*+++ P+++>++++ L++ E W+++$ !N !o K !w !O M+>++ !V PS+++ PE !Y PGP+ !t-- !5 !X R@ tv- b+ DI D+ G e h r++ y+
------END GEEK CODE BLOCK------

yrmt
Grey Hair Nixers
heh it's iTerm almost default configs.
yrmt
Grey Hair Nixers
![](http://paste.xinu.at/B8loKC/)

ricing is fun
crshd
Registered
You got drugs at home? Don't let the Feds see that...

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCA/IT d-(---)@ s+: a-- C+++(++++)$ UBL*+++ P+++>++++ L++ E W+++$ !N !o K !w !O M+>++ !V PS+++ PE !Y PGP+ !t-- !5 !X R@ tv- b+ DI D+ G e h r++ y+
------END GEEK CODE BLOCK------

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

What font is that? Looks nice.
yrmt
Grey Hair Nixers
(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.
gurhush
Long time nixers
[Image: MjXuU.png]
gurhush
Long time nixers
[Image: HqchQ.png]
Ivyl
Members
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/...prompt.zsh).
crshd
Registered
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

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCA/IT d-(---)@ s+: a-- C+++(++++)$ UBL*+++ P+++>++++ L++ E W+++$ !N !o K !w !O M+>++ !V PS+++ PE !Y PGP+ !t-- !5 !X R@ tv- b+ DI D+ G e h r++ y+
------END GEEK CODE BLOCK------

yrmt
Grey Hair Nixers
Simplicity itself:

[Image: GDOcp.png]
Mafia
Long time nixers
Ewwwyyy Beastie..
crshd, now he has the idea :)
eye
Members
[Image: WcBDas.jpg]
darthlukan
Members
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...
Github: https://github.com/darthlukan
CRUX Ports: http://ports.brianctomlinson.com
GPG: 3694569D
"We're all human, act accordingly." -- Me
ashen
Members
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]
Mafia
Long time nixers
Tab completion is so nice. Cute prompt.
josuah
Long time nixers
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>