Users browsing this thread: 1 Guest(s)
ninjacharlie
Members
[Image: XbOP]

'cause lambdas are cool.
neeasade
Grey Hair Nixers
[Image: u5lmT.png]
Adrift
Members
Not as fancy as the gif I posted on reddit. But much less large -- in visual size. And features right aligned short dir in bash.

[Image: pH618.png]
venam
Administrators
(04-04-2016, 04:01 PM)neeasade Wrote: [Image: u5lmT.png]
Never thought I would say that of one of neeasade's post but...It's very "plain".
neeasade
Grey Hair Nixers
rocx
Members
[Image: eshellprompt.png]

Code:
;; set the eshell prompt
;; i'm ~sooo~ original
(setq eshell-prompt-function (lambda ()
      (concat (if (= 0 (user-uid)) "Λ" "λ") " ")))

I do a good bit of buffer manipulation, hence the use of eshell and
(04-04-2016, 03:49 PM)ninjacharlie Wrote: 'cause lambdas are cool.
venam
Administrators
Alright, show us your prompt and let us know what's particular about it, if anything.



Here's mine:
[Image: 0Z3LjIa.png]
[Image: BrJgCja.png]

zshrc:
Code:
PS1=' %~ > '
export SUDO_PROMPT="[Switching User] > "
jkl
Long time nixers
I still prefer a non-annoying approach:

[Image: pt9R7hy.jpg]

.cshrc:

Code:
set prompt = '[%n@%m:%~]%# '

--
<mort> choosing a terrible license just to be spiteful towards others is possibly the most tux0r thing I've ever seen
pyratebeard
Long time nixers
my minimal zsh prompt:

[Image: nixers-prompt.png]
eye
Members
minimal

[Image: inQT.png]
seninha
Long time nixers
I use a left and right PS1 on ksh.
The left prompt indicates whether I'm root (it becomes red when I'm root), and, if a command fails, it prints the exit code returned by the last command between square brackets.
The right prompt indicates where I am.

[Image: scrot-2020-11-09-110943.png]

Here's how I set it:
Code:
promptcmd() {
    _exit=$?
    _dir=$(echo "$PWD" | sed "s,^$HOME,~,")
    _tty=$(tty)
    _tty=${_tty#/dev/}

    printf "%s" "\[\e]0;$_tty: $_dir\a\]"           # set window title

    echo                                            # blank line

    [ "$_exit" -gt 0 ] && printf "%s" "\[\e[1;31m\] [$_exit]"
    printf "%s" "\[\e[0m\]"
    printf "%s" "\[\e[s\]"                          # save cursor position
    printf "%s" "\[\e[$((COLUMNS - ${#_dir}))G\]"   # go to right
    printf "%s" "$_dir"                             # print pwd
    printf "%s" "\[\e[u\]"                          # restore cursor position
    if [ $(id -u) -eq 0 ]
    then
        printf "%s" "\[\e[1;31m\]"
    else
        printf "%s" "\[\e[1m\]"
    fi
    printf "%s" " ❯ "
    printf "%s" "\[\e[0m\]"
}
PS1='`promptcmd`'
pfr
Nixers
[Image: 11-11-2020-0944.png]

I'm a simple man.
_____________________________________________________________________________________________
“Maybe you have some bird ideas... Maybe that's the best you can do.” - Terry A. Davis (R.I.P Terry & Percival)
opfez
Members
This is mine atm:
[Image: prompt.png]

I use vi keys in shell, so I have right aligned my mode.
Also, the bright pink cursor makes it easy to spot in source code)
Code:
export PS1='%f[%F{cyan}%~%f]> '
export PS2='%f>>> '
export RPS1='%F{243}${vi_mode}'
(zsh)
jolia
Long time nixers
here is mine, oh-my-zsh, muse theme, customized a bit:
[Image: inO0.png]
sulami
Members
Mine's quite boring, this is ZSH without any frameworks or so.

I used to be a vim user (before Emacs) and my workflow hinged on suspending/resuming vim to get to my shell, so I've got the background job indicated in the prompt (and also resume bound to C-z for quick toggling).

Also highlighting to indicate existing executables/paths.

[Image: zsh-prompt.png]
s0kx
Members
Wrong OS at the moment, but here's my boring wsl prompt:

[Image: 0n.PNG]
jolia
Long time nixers
(11-11-2020, 09:11 AM)sokx Wrote: Wrong OS at the moment, but here's my boring wsl prompt:

[Image: 0n.PNG]
man, i completely feel you on that wsl thing
jkl
Long time nixers
(11-11-2020, 07:11 AM)sulami Wrote: [Image: zsh-prompt.png]

I would assume that such a low contrast is very hard to stare at for a long time.

--
<mort> choosing a terrible license just to be spiteful towards others is possibly the most tux0r thing I've ever seen
neeasade
Grey Hair Nixers
(11-11-2020, 01:20 PM)jkl Wrote: I would assume that such a low contrast is very hard to stare at for a long time.

This seems pretty high contrast to me -- I was curious and checked, I get 3.6 (the gray). Granted, I only enforce a minimum ratio of 2.2.

... oh, the previous prompt text (the yellowish?) is 2.26, which is fairly low.
sulami
Members
(11-11-2020, 01:20 PM)jkl Wrote: I would assume that such a low contrast is very hard to stare at for a long time.

This is the stock Solarized dark theme. I don't like too high contrast because I find it too harsh on the eyes. Another dark theme I really like is gruvbox (the dark soft variant). I rather increase the font size than the contrast, as I'm slowly going blind (really need to get some glasses).

During the day I mostly use Solarized light, which should in theory have the same contrast.