[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What's your $PS1?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 45
Thread images: 15

File: PS1.png (8KB, 656x391px) Image search: [Google]
PS1.png
8KB, 656x391px
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.
>>
>>57765323
PS1="8==>~ "
>>
>>57765323
>
>>
File: Untitled.png (529B, 72x38px) Image search: [Google]
Untitled.png
529B, 72x38px
>>57765468
Fixed that for you
>>
>>57765398
top tier
>>
File: Selection_003.png (6KB, 1186x345px) Image search: [Google]
Selection_003.png
6KB, 1186x345px
bash fo lyf
>>
File: Capture.png (5KB, 719x424px) Image search: [Google]
Capture.png
5KB, 719x424px
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
>>
File: 1452593782641.png (27KB, 958x140px) Image search: [Google]
1452593782641.png
27KB, 958x140px
>>57765323
Here's my ps1: https://github.com/nilesr/dotfiles/blob/master/.shell_prompt.sh
>>
File: last.png (7KB, 521x307px) Image search: [Google]
last.png
7KB, 521x307px
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.
>>
File: screenshot-1480527636.png (1MB, 1920x1080px) Image search: [Google]
screenshot-1480527636.png
1MB, 1920x1080px
>>
File: Screenshot (34).png (33KB, 1920x1080px) Image search: [Google]
Screenshot (34).png
33KB, 1920x1080px
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
}
>>
File: 1450254560343.png (3KB, 434x83px) Image search: [Google]
1450254560343.png
3KB, 434x83px
>>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
>>
File: 1457373077661.png (2KB, 508x291px) Image search: [Google]
1457373077661.png
2KB, 508x291px
>>
File: 1475453746645.jpg (18KB, 249x249px) Image search: [Google]
1475453746645.jpg
18KB, 249x249px
>>57769337
hi bdelloid
>>
I like to keep it simple and sleek.
Thread posts: 45
Thread images: 15


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.