What's your $PS1?
my what?
>>57765334
>not owning a glorious first generation PlayStation
[\u@\h \W]\$
I'm lazy.
scph1001
I think its one of the oh my zsh default ones, but i dont remember or really care.
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\] "
}
It's a function because I was originally going to do some more fancy shit with my $PS1, but I never got around to doing it.
Also, root's bashrc just symlinks to mine.
>>57765323PS1="8==>~ "
>>57765468
Fixed that for you
>>57765398
top tier
bash fo lyf
function global:prompt {
# Print current time
Write-Host ("[") -N -F DarkGray
Write-Host ($(Get-Date -F T)) -N -F Yellow
Write-Host ("]") -N -F DarkGray
# Print current dir
Write-Host ("[") -N -F DarkGray
Write-Host ($PWD) -N -F Yellow
Write-Host ("]") -N -F DarkGray
# Print prompt symbol:
Write-Host ("`n>>") -N -F Green
return " ";
}
>>57765468
Post photo to the right thanks
>>57765468
Thanks for the 3840x2160 3.3mb PS1 image. Worth the wait for the pedophilia.
>>57768241
>american detected
>>57765323
Here's my ps1: https://github.com/nilesr/dotfiles/blob/master/.shell_prompt.sh
I can't post the whole prompt because it's huge and modular.
It's the borra prompt in zoppo.
I literally got linux today. How do you do this shit.
>>57770564
There's a dotfile (hidden file) in your home directory called .bashrc
Play with this:
https://www.kirsle.net/wizards/ps1.html
Copy and paste the resulting export statement into your .bashrc
>>57770622
>https://www.kirsle.net/wizards/ps1.html
Thanks man I appreciate it. Been eyeballing Linux from a distance for a while and ended up buying a SSD last weekend when there were deals everywhere.
Decided it was the perfect time. Currently I'm dual booting cause I dunno how to use all my shit on linux but maybe someday I'll do the full switch.
lol at the tryhards
default is fine
>>57770564
>I literally got linux today. How do you do this shit.
Linux cannot do this by itself, you need to get yourself GNU/Linux.
>>57770797
I didn't say I got only Linux, just that I got Linux. Nice reading comprehension.
>>57770932
>insulting others' reading skills when you clearly haven't even tried to RTFM
my current folder
what other information would you possibly need?
>>57771330
username is relevant if you use multiple rigs
>>57765323
PROMPT=$'
%{$fg[blue]%}%~ [%n@%m] [%*]%{$reset_color%}
%{$fg_bold[black]%}>%{$reset_color%} '
PROMPT2="%{$fg_blod[black]%}%_> %{$reset_color%}"
function preexec() {
timer=${timer:-$SECONDS}
}
function precmd() {
if [ $timer ]; then
timer_show=$(($SECONDS - $timer))
export RPROMPT="%F{blue}${timer_show}s%{$reset_color%}"
unset timer
fi
}
>>57765323
You literally can't beat this.
>>57770715
Is that FreeBSD?
>>57771638
Yes, the 11th release.
>>57765334
In shell, type
PS1=Nigger
"[\h:\w] \u% "
>>57770932
I only read what you wrote:
>I literally got linux today.
What you should have said was:
>I literally got GNU/Linux today.
>>57770715
>hero ouf current times
is this a meme ?
>>57773322
Shouldn't have assumed desu
>>57773322
what if... he got BSD/Linux?
>>57773900
>BSD
Then he also got a bad case of retardation.
>>57773376
How come is reading Russian classical literature a meme? (And not like I enjoy it - I'm just required to read it.)
>>57765425
> root's $FOO symlinks to $USERDIR
wew
>>57769337
hi bdelloid
I like to keep it simple and sleek.