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


RE: Your PROMPT - ninjacharlie - 04-04-2016

[Image: XbOP]

'cause lambdas are cool.


RE: Your PROMPT - neeasade - 04-04-2016

[Image: u5lmT.png]


RE: Your PROMPT - Adrift - 04-04-2016

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]


RE: Your PROMPT - venam - 05-04-2016

(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".


RE: Your PROMPT - neeasade - 05-04-2016

;> https://github.com/neeasade/dotfiles/blob/088feed71a533cb275d3dd14a22cd6ed23311f6b/shell/.bashrc#L86-L92


RE: Your PROMPT - rocx - 05-04-2016

[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.



RE: Your PROMPT - venam - 09-11-2020

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] > "



RE: Your PROMPT - jkl - 09-11-2020

I still prefer a non-annoying approach:

[Image: pt9R7hy.jpg]

.cshrc:

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



RE: Your PROMPT - pyratebeard - 09-11-2020

my minimal zsh prompt:

[Image: nixers-prompt.png]


RE: Your PROMPT - eye - 09-11-2020

minimal

[Image: inQT.png]


RE: Your PROMPT - seninha - 09-11-2020

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`'



RE: Your PROMPT - pfr - 10-11-2020

[Image: 11-11-2020-0944.png]

I'm a simple man.


RE: Your PROMPT - opfez - 10-11-2020

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)


RE: Your PROMPT - jolia - 10-11-2020

here is mine, oh-my-zsh, muse theme, customized a bit:
[Image: inO0.png]


RE: Your PROMPT - sulami - 11-11-2020

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]


RE: Your PROMPT - s0kx - 11-11-2020

Wrong OS at the moment, but here's my boring wsl prompt:

[Image: 0n.PNG]


RE: Your PROMPT - jolia - 11-11-2020

(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


RE: Your PROMPT - jkl - 11-11-2020

(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.


RE: Your PROMPT - neeasade - 11-11-2020

(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.


RE: Your PROMPT - sulami - 11-11-2020

(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.