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

!!------bash------rc---------~~BRCG~~-------gen--------eral--------!!

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: 67
Thread images: 13

File: bashrc.png (28KB, 665x446px) Image search: [Google]
bashrc.png
28KB, 665x446px
BASH RC GENERAL

POST YOUR PROMPTS

IF YOU HAVE ZRSH OR WHATEVER THE THAT SHIT IS CALLED FUCK OFF AND START YOUR OWN THREAD
>>
zsh > *
>>
>>60022933
>bashrc thread
>posts desktop with wrong prompt

"Expresses difficulty with following basic instructions"
>>
>>60022933
Post butt.
>>
I have a custom script in /home/myuser/bin
While adjusting path in bash itself it works, but I don't know where to adjust the path permanently.

PATH=$PATH:$HOME/bin

export PATH


in .bash_profile doesn't work
>>
>>60023125
.bashrc
>>
>>60023086
wh-why
>>
File: .png (37KB, 539x545px) Image search: [Google]
.png
37KB, 539x545px
>>60022904
ew bash it's bloat
>>60022933
ew zsh it's bloat

mksh > rc > openbsd pdksh > ash and likes > bloated stuff like bash or zsh > csh and likes > fish
>>
File: 20170423102538.png (9KB, 342x104px) Image search: [Google]
20170423102538.png
9KB, 342x104px
>>60022904
somewhat related
>>
File: poop.png (97KB, 1132x1051px) Image search: [Google]
poop.png
97KB, 1132x1051px
>>60022904
I no longer use GNU + Linux, but you are free to have my .bashrc.
posted wrong pic

>>60023125
In a file called .bashrc in your ~/ directory, place the last line at the very bottom. It just works™.
>>
>>60023160
shhh.. no questions, just butt.
>>
>>60023155
>>60023214
Thank you very much gents, I was looking all over but didn't wanted to just drop it somewhere.

It works, I now have the godly gw command at my disposal, able to pipe through to cowsay.

 _________________________________________ 
/ takeout's unrasping Apianus's \
| stolonlike lubbard's thoracodynia |
| satyra's pedaloes ultratechnical |
| Nicolle ritualizing iceberg Nereidae's |
| mocha's Canby conchy's undutifulnesses |
| annealed snathes omasa obsessivenesses |
| Kr's peltandra spherocytosis |
| Monodelphia's Mixtecan odah's Sapulpa |
\ chesils Menshevik tossup's metakinetic /
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||

>>
>>60023272
>>60023277
Wrong quote
>>
File: ssq6ndT[1].png (67KB, 1219x748px) Image search: [Google]
ssq6ndT[1].png
67KB, 1219x748px
>>60022904
>>
>>60022904
>>
>>60022904
>he uses bash
>>
>>60023304
>hostname | reboot
What does this even do?
>>
>>60023304
yes i will be taking this thank yooouuu
>>
mkcd () {
mkdir -p $1;
cd $1;
}
>>
Why aren't you using fish?
>>
>>60023304
try these apt-get aliases out:
##management
alias update='sudo apt-get update'
alias install='sudo apt-get install'
alias scrub='sudo apt-get autoremove'
alias clean='sudo apt-get autoclean'
alias check='sudo apt-get check'
alias remove='sudo apt-get clean'
alias purge='sudo apt-get purge'
alias build='sudo apt-get build-dep'
alias surch='apt-cache search'
alias shoow='apt-cache show'
alias postapt='clean; remove; scrub; check'
>>
>>60023446
reboots host
>>
>>60023526
>missing the upgrade

But hey, these give me ideas for my raspberrypi ^^
>>
>>60022904
i zsh now but back when i was dicking around linux i basically had 1 line in my bashrc

>alias fucking=sudo

this way i can giggle when i wrote

fucking shutdown now
>>
>>60023559
>upgrading a system that works
>>
I always find funny to set:
alias please='sudo'
seems more polite with your machine ; )
>>
>>60023644
kek
>>
>>60023633
Y.y.y.y.y.yyyou, got me :D
>>
>>60023534
Yeah, but doesn't just reboot also reboot host?
>>
>>60023254
was a revelation when i found the inputrc. my bash is pretty comfy
>>
>>60023782
What do you have in there? I only have those lines. Was thinking of setting bash to vim mode but if I go use another machine maybe it will feel fucked up?
>>
If your PS1 isn't '\$ ' then you need to go back.
>>
>>60022933
post wallpaper
>>
>>60023928
set completion-ignore-case on
set completion-query-items -1
set show-all-if-ambiguous on
set show-all-if-unmodified on
set skip-completed-text on

gotta go over it line by line again, but have the ones you have in your shot and these. makes completion a tad better than vanilla. not quite zsh, but don't feel like going back to that.
>>
>>60023304
anon why are you on root
>>
>>60023471
nice
>>
>>60023272
Thanks!

I don't use GNU/Linux right now, but I am using the Windows Subsystem for Linux. Any chance you've got a text dump of that?
>>
>>60023734
I'm sorry. I didn't mean to get you.
>>
>>60024260
Be carefull with wget
>>
File: 20170423120144.png (88KB, 643x424px) Image search: [Google]
20170423120144.png
88KB, 643x424px
>>60024080
Thanks, heres what I've settled on for now
>>
File: illya 14.png (2MB, 3840x2160px) Image search: [Google]
illya 14.png
2MB, 3840x2160px
>>60024046
>>
>>60024680
got colored stats too, forgot to add that. but i'm not much of a vim user, too rich for my tastes
>>
Am I a faggot for putting my scripts in .profile on osx?
>>
>>60022904
# Alt-S to insert sudo at beginning of a line
insert_sudo () { zle beginning-of-line; zle -U "sudo " }
zle -N insert-sudo insert_sudo
bindkey "^[s" insert-sudo


"fractal"
function fractal {
local lines columns colour a b p q i pnew
((columns=COLUMNS-1, lines=LINES-1, colour=0))
for ((b=-1.5; b<=1.5; b+=3.0/lines)) do
for ((a=-2.0; a<=1; a+=3.0/columns)) do
for ((p=0.0, q=0.0, i=0; p*p+q*q < 4 && i < 32; i++)) do
((pnew=p*p-q*q+a, q=2*p*q+b, p=pnew))
done
((colour=(i/4)%8))
echo -n "\\e[4${colour}m "
done
echo
done
}
>>
>>60022933
didn't the mods ban this faggot? Fuck, you're the worst shitposter in all of /g/. Literally more cancerous than the tripfags here.
>>
>>60025298
mods don't ban pass users baka
>>
>>60025298
mods baka if ban
>>
>>60023526
sorry but my bash doesn't recognize anything after sudo.
>>
>>60025365
What if they post CP?
>>
>>60025289
bash: ((: b=-1.5: syntax error: invalid arithmetic operator (error token is ".5")
>>
>>60025527
install bash-completion
>>
>>60025298
he's unbannable
>>
>>60025603
*she
>>
>>60025655
sorry
>>
is bash a programming language?
>>
It ain't much
>>
>>60025678
see >>60025684
>>
>>60025586
bash-completion already newset version. Im on Xubuntu
>>
File: 1487770517706.jpg (32KB, 619x387px) Image search: [Google]
1487770517706.jpg
32KB, 619x387px
alias c='clear'
>>
>>60022933
this is NOT the new desktop thread
>>
File: heh.png (165KB, 596x355px) Image search: [Google]
heh.png
165KB, 596x355px
>>60022904
>>
>>60026501
you do know you can just Ctrl+l, right?
>>
File: ps1.jpg (447KB, 854x958px) Image search: [Google]
ps1.jpg
447KB, 854x958px
>>
>>60022933
I miss you illyaposter post more
>>
>>60027439
i didn't know that. wow
>>
>>60027471
fancy
>>
>>60027571
ctrl a is back to beginning if you forget sudo
Thread posts: 67
Thread images: 13


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