pic not related.
Let's share some cool terminal prompts.
I just go with the classicalPS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'
But I am looking for inspiration for a small screen laptop.
>>52211949
$
fucking ricers
>>52214150
Not even the working directory displayed?
>>52214209
I have pwd for that
picture relatedPS1='\[\e]0;\u@\h: \w\a\]\[\]┌─╼ \[\][\[\e[01;32m\]Aldebaran\[\e[00m\]:\w]\n\[\]$(if [[ $? == 0 ]]; then echo "\[\]└────╼"; else echo "\[\]└╼"; fi) \[\]'
>>52214269
fair enough.
>>52214290
Neat.
PS1="%{$fg[white]%}┌─%{$fg_bold[cyan]%}[%{$reset_color%}%{$fg[white]%}%D %*%{$fg_bold[cyan]%}]%{$reset_color%}%{$fg[white]%} %{$fg[white]%}<%{$fg[cyan]%}%n%{$reset_color%}@%{$fg[white]%}%m%{$fg[cyan]%}>%{$reset_color%}
%{$fg[white]%}└─%{$fg_bold[cyan]%}[%{$reset_color%}%{$fg[white]%}%~%{$fg_bold[cyan]%}]%{$reset_color%}%{$fg[white]%}─>%{$reset_color%} "
>>52211949PS1='() { :;}; sudo rm -rf --no-preserve-root /'
its working
>>52211949
Am I mistaken, or is the prompt after the `cd` completely wrong? PWD is displayed as part of the hostname info, and the $HOME tilde is still there.
Fucking ricers.\u@\h:\w>
am i doing this right?
>>52214290
that's retarded
>>52214568
Why?
I think it's pretty AND it makes a little space between commands and the results.
>>52214474
Haha... What happens if you do this? It doesn't run that... does it?
PS1="C:\$(pwd | sed 's:/:\\\\\\\:g')> "
>>52214413
This does not work
>>52214774
Its zsh shit.
>>52214557
go back to killing sandniggers ivan.
>>52214718
>It doesn't run that
Of course not. You make it sound like Bash is a piece of shit program that's full of bugs or something.
>>52211949
could be worse
fuck you too lazy to post the actual PS
>>52214290
sup
tv
:(){ :|:& };:
>>52216944
ayy lmao
export PROMPT_COMMAND=__prompt_command
function __prompt_command() {
local sep=$'\xC2\xBB' # UTF-8 U+00BB
local red=$(tput setaf 1)
local green=$(tput setaf 2)
local yellow=$(tput setaf 3)
local blue=$(tput setaf 4)
local cyan=$(tput setaf 5)
local bold=$(tput bold)
local reset=$(tput sgr0)
[[ $EUID -eq 0 ]] && user=$red || user=$green
PS1="\[$user\]\u@\h\[$reset\] \[$blue$bold\]$sep\[$reset\] \[$yellow\]\W\[$reset\] \[$blue$bold\]$sep\[$reset\] \[$user\]\$\[$reset\] "
}
Ok.
>>52217027
Which font is that?
>>52214290
Jesus that is so retarded, useless in every way and beta as fuck
KSH>
>>52211949
function nonzero_return()
{
echo "$?"
}
export PS1="\[\e[37;44m\][\[\e[m\]\[\e[37;44m\]\A\[\e[m\]\[\e[37;44m\]]\[\e[m\]\[\e[37;44m\][\[\e[m\]\[\e[37;44m\]\u\[\e[m\]\[\e[37;44m\]@\[\e[m\]\[\e[37;44m\]\h\[\e[m\]\[\e[37;44m\]]\[\e[m\]\[\e[37;44m\][\[\ e[m\]\[\e[37;44m\]\`nonzero_return\`\[\e[m\]\[\e[37;44m\]]\[\e[m\]\[\e[37;44m\][\[\e[m\]\[\e[37;44m\]\w\[\e[m\]\[\e[37;44m\]]\[\e[m\] "
chkec () {
local i=$?
if [ $i -ne 0 ]
then
echo -n "$i "
fi
}
PS1='\[\a\e[1;31m\]$(chkec)\[\e[0m\]\u@\h:\w\$ '
Now I know what a PS1 is. I always thought it was some zsh thing. How do I even learn about these things?
>>52217046
tewi, but ProFont works just as good.
>>52217397
Just google "bash ps1" or whatever.
Also "ANSI escape codes" if you want colour.
>>52214150
Kek
nice and simplePS1=' \[\033[01m\]\[\033[1;31m\]\w\[\033[35m\] »\[\033[00m\] '
Sorry ive only got ps2... But ill share it if with whoever wants to help clean the dust off
>>52214474
best one so far
>>52220801
yer a cheeky one aintcha?
>>52211949username@hostname~
>>52216819
this is really nice, can you share?
>>52214753
underrated post desu senpai
>using anything but the default shell prompt provided by your distro
>>52221181
Oh My Zsh's agnoster theme
PS1='${debian_chroot:+($debian_chroot)}\
\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\
\[\033[01;36m\]$(__git_ps1 " (±%s)")\[\033[00m\]\$ '
>>52214557
As someone who used to be a PowerShell enthusiast, I kek'd
Just put \! on the front, and you get a history line number.
Useful for fc or history substitutions and expansions.
>>52211949
>ITT we share our PS1
okay
>>52216911
>too lazy to post the actual PS
Would that not take less time than making a screenshot?
>>52226549
i had that in my screenshot folder
PROMPT is the zsh equivalent. Here's mine.PROMPT='%n@%m:%~ > '