you can have compose in the linux console too. an actually ergonomic choice is caps lock i think, because really, what is caps lock even for…
huf [he/him]
- 0 Posts
- 26 Comments
no, i think azerty takes the absolute cake, but the german layout is also dogshit. it’s qwertz for one, which is shit. and the placement of
{ [ ] }
are absurd.and it’s not necessary that these languages have shit layouts. look at the polish programmer’s layout, that’s a sane way to add extra letters.
huf [he/him]@hexbear.netto Programmer Humor@lemmy.ml•Python needs an actual default functionEnglish1·4 months agoi dont think boromir ever said that though, this is from that mess made by that B-horror director
i guess some people like being under pressure? i dunno
huf [he/him]@hexbear.netto Linux@lemmy.ml•What kind of mindset do you need to be succesful starting and continuing to use Linux.English2·5 months agoyeah, i was really tired of win98SE when i switched to linux. just entirely over it.
it’s always been obvious to me that we need something to fill the gap between awk and sql, but please please not excel. please. among the 8 billion people on earth, someone has to have a better idea
but why not just use ext4, which isnt buggy?
pff no, they ask you how sorting works and then put you to work using sql’s ORDER BY. at that point, why ask?
huf [he/him]@hexbear.netto Linux@lemmy.ml•[Question] In vim I can't type the ~ characterEnglish2·8 months ago\o/
huf [he/him]@hexbear.netto Linux@lemmy.ml•[Question] In vim I can't type the ~ characterEnglish4·8 months agovim will load some other rc file if it cant find your ~/.vimrc. check what it has loaded with
:scriptnames
also, try starting vim in a brand new terminal with
vim -u NONE
and check if it’s still happening.
huf [he/him]@hexbear.netto Linux@lemmy.ml•On this day 16 years ago, Ubuntu forced a girl to drop out of college.English13·8 months agolinux must go
who must go?
…
huf [he/him]@hexbear.netto Linux@lemmy.ml•zcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !English1·9 months agoin that case, i’d prefer a
~/bin/zcat
with the contents#!/bin/sh exec gzip -cdf "$@"
this way, it’s exec’able, unlike an alias or shell function.
huf [he/him]@hexbear.netto Linux@lemmy.ml•zcat shouldn't error out if you try to zcat an uncompressed file, it should just output the damned file !English6·9 months agozgrep . *
should do the trickoh, there’s also
zcat -f *
no, there’s also documentation that is 10 years old, entirely out of date and very incomplete.
does anything flush the buffers after the print, but before the break? otherwise, if the stream you’re printing to is buffered, you’re not necessarily gonna see any output
huf [he/him]@hexbear.netto Linux@lemmy.ml•It seems M$ really doesn't want people to keep using WIndowsEnglish2·10 months agoi’m afraid it’s M$ or MiKKKroSSoft. your choice.
huf [he/him]@hexbear.netto Linux@lemmy.ml•Perl rename command works at cli but not in alias or bash scriptEnglish2·10 months agoi’d probably do
function cap() { prename 's/(^[a-z]?)/\U$1/' "$@" }
it means it has to be invoked as
cap *
, but it also means that you can docap foo*
or whatever
huf [he/him]@hexbear.netto Linux@lemmy.ml•Perl rename command works at cli but not in alias or bash scriptEnglish3·10 months agowhen you create the alias, the shell substitutes the
$1
(to nothing, probably) since your alias is in""
(double quotes).
now, if you swap the single and double quotes, then the substitution still happens, but at invocation time instead of at definition time.
you actually want perl to deal with this$1
, so neither is good.you have three options:
- write a function instead, as has been suggested
- use
''
quoting, which lets you put ’ (single quote) inside ’ (single quote) without going mad:alias cica=$'foo \'$bar\' baz'
- go insane and do this:
alias cica='foo '\''$bar'\'' baz'
(this is the old way, without bash’s''
)
huf [he/him]@hexbear.netto Programmer Humor@lemmy.ml•This is gonna hurt if you're a developer, you've been warned.English31·10 months agobut without traditions, we’re just drifting aimlessly through life
pff, i aint reading all that, lemme optimize it:
private bool isEven(int number) { return rand() < 0.5; }