[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: 38
Thread images: 8

File: hackertyper.png (11KB, 715x402px) Image search: [Google]
hackertyper.png
11KB, 715x402px
What's your $PS1?
>>
zsh with powerline-shell
>>
>>57355724
somehting cool im not sure
>>
>>57355724
PS1="\[\033[01;34m\]\u\[\033[00;37m\]@\[\033[01;34m\]\h\[\033[00;37m\][\W] \$ "
>>
(>'')>[~] >
>>
$
>>
>>57355724
the default. i see no need to change it from anon@computer:~$
>>
~ λ echo -e $PS1
$FG[237]------------------------------------------------------------%{$reset_color%}
$FG[032]%~\
$(git_prompt_info) \
$FG[105]%(!.#.λ)%{$reset_color%}
>>
>>
>>57356982
macfag pls go
>>
>>57355724
I don't have a playstation 1
>>
>>57356982
>macfag doesn't know what the cat command is used for
>uses it for screen dumping output

color me surprised.
>>
>>57357249
umm this isn't cat it's imgcat baka
>>
>>57357278
>called imgcat
>doesn't concatenate image files.

Fucking dumb.
>>
>>57357296
i didnt make the name baka dont complain to me
>>
>>57356982
>/Junk/qts
How could you?
>>
>>57357320
junk is just my drive for random storage
>>
>>57355724
~›
>>
%BREADY
> %b
>>
File: anchor.png (16KB, 544x319px) Image search: [Google]
anchor.png
16KB, 544x319px
>>57355724
export PS1="\[\033[38;5;14m\][\u]\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;10m\]\W>\[$(tput sgr0)\]"

(picture is what it looks like)
>>
PS1='\[$(tput bold)\]\[$(tput setaf 3)\]\!:\[$(tput setaf 6)\]\u@\w:\$\[$(tput sgr0)\] '
>>
>>57357609
Is that neofetch?
>>
PS1=" ▲\n▲ ▲"
>>
>>57355724
Oh look, it's another MatLab thread
>>
File: wew.png (89KB, 960x531px) Image search: [Google]
wew.png
89KB, 960x531px
setprompt () {
# load some modules
autoload -U colors zsh/terminfo # Used in the colour alias below
colors
setopt prompt_subst

# make some aliases for the colours: (coud use normal escap.seq's too)
for color in RED GREEN YELLOW LIGHTBLUE BLUE MAGENTA CYAN WHITE; do
eval PR_$color='%{$fg[${(L)color}]%}'
done
PR_NO_COLOR="%{$terminfo[sgr0]%}"

# Check the UID
if [[ $UID -ge 1000 ]]; then # normal user
eval PR_USER='${PR_MAGENTA}%n${PR_NO_COLOR}'
eval PR_USER_OP='${PR_MAGENTA}%#${PR_NO_COLOR}'
elif [[ $UID -eq 0 ]]; then # root
eval PR_USER='${PR_RED}%n${PR_NO_COLOR}'
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
fi

rstatus() {
if [[ $? -eq 0 ]];then
echo 0
else
echo ${PR_RED}$?
fi
}

PS1=$'${PR_BLUE}[${PR_USER}${PR_BLUE}@${PR_MAGENTA}%M${PR_NO_COLOR}${PR_BLUE}]${PR_BLUE}`rstatus`${PR_BLUE}[%~${PR_BLUE}]${PR_USER_OP}'
}
setprompt

>>
File: ps1.png (68KB, 677x342px) Image search: [Google]
ps1.png
68KB, 677x342px
>>57355724
>>
>>57357296
>netcat
>doesn't concatenate networks
>>
>>57359032
>netcat
>concatenates UDP/TCP sockets

retard
>>
File: .png (51KB, 643x528px) Image search: [Google]
.png
51KB, 643x528px
>>57359161
wewew
>>
File: .png (765KB, 684x1195px) Image search: [Google]
.png
765KB, 684x1195px
>>57359200
fuck misclicked
btw it actually does concatenate
>>
>>57359200
>I use the unintentional side-effect of a program instead of programs designed to do what I want.
>i still don't know what 'cat' means, it's just a funny name for a pagination program!

wewew.
>>
>>57359306
do you still not realize that imgcat has nothing to do with cat?
>>
>>57359270
Oh cool. Documentation doesn't show that it does.
Carry on then.
>>
Agnoster ZSH with modifies colors to look nice on my color scheme
>>
>>57359336
then why call it cat?
Documentation says it works like cat so I'd assume it would concatenate files.
>>57359359
Fuck you, you replied and posted the wrong fucking picture, retard. But does it create a new file or does it only concatenate on stdout?
>>
File: macfag.png (5KB, 217x233px) Image search: [Google]
macfag.png
5KB, 217x233px
>>57359359
But that isn't concatenation, it's rendering an image.
>>
>>57359394
how am i supposed to know why they called it that, ask the devs
it's nothing to sperg about, it just shows images in terminal
>>
>>57359394
oops sorry x-d

what do you mean by 'create a new file'? isnt stdout a file?
its just a shell script
#!/bin/bash
function print_osc() {
if [[ $TERM == screen* ]] ; then
printf "\033Ptmux;\033\033]"
else
printf "\033]"
fi
}
function print_st() {
if [[ $TERM == screen* ]] ; then
printf "\a\033\\"
else
printf "\a"
fi
}

function print_image() {
print_osc
printf '1337;File='
if [[ -n "$1" ]]; then
printf 'name='`printf "%s" "$1" | base64`";"
fi

VERSION=$(base64 --version 2>&1)
if [[ "$VERSION" =~ fourmilab ]]; then
BASE64ARG=-d
elif [[ "$VERSION" =~ GNU ]]; then
BASE64ARG=-di
else
BASE64ARG=-D
fi

printf "%s" "$3" | base64 $BASE64ARG | wc -c | awk '{printf "size=%d",$1}'
printf ";inline=$2"
printf ":"
printf "%s" "$3"
print_st
printf '\n'
if [[ -n "$4" ]]; then
echo $1
fi
}

function error() {
echo "ERROR: $*" 1>&2
}

function show_help() {
echo "Usage: imgcat [-p] filename ..." 1>& 2
echo " or: cat filename | imgcat" 1>& 2
}

if [ -t 0 ]; then
has_stdin=f
else
has_stdin=t
fi
if [ $has_stdin = f -a $# -eq 0 ]; then
show_help
exit
fi
while [ $# -gt 0 ]; do
case "$1" in
-h|--h|--help)
show_help
exit
;;
-p|--p|--print)
print_filename=1
;;
-*)
error "Unknown option flag: $1"
show_help
exit 1
;;
*)
if [ -r "$1" ] ; then
has_stdin=f
print_image "$1" 1 "$(base64 < "$1")" "$print_filename"
else
error "imgcat: $1: No such file or directory"
exit 2
fi
;;
esac
shift
done
if [ $has_stdin = t ]; then
print_image "" 1 "$(cat | base64)" ""
fi
exit 0

(i had to remove comments so this would fit in the 2000 char limit)
>>57359398
iterm is the thing what renders
Thread posts: 38
Thread images: 8


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