huf

joined 3 years ago
[–] huf@hexbear.net 4 points 4 days ago (2 children)

vim 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@hexbear.net 5 points 6 days ago (1 children)

amazon's probably boosting any product with "white power" in it, that's why you're seeing this now

[–] huf@hexbear.net 11 points 3 weeks ago (1 children)

linux must go
who must go?
...

[–] huf@hexbear.net 1 points 1 month ago

in 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@hexbear.net 6 points 1 month ago* (last edited 1 month ago) (2 children)

zgrep . * should do the trick

oh, there's also zcat -f *

[–] huf@hexbear.net 2 points 2 months ago

i'm afraid it's M$ or MiKKKroSSoft. your choice.

[–] huf@hexbear.net 7 points 2 months ago

they liked 90s russia, when it was weak, full of child prostitutes and people were dying en-masse from substance abuse (and the barn doors were wide open so they could loot it)

[–] huf@hexbear.net 2 points 2 months ago

i'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 do cap foo* or whatever

[–] huf@hexbear.net 3 points 2 months ago

when 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@hexbear.net 4 points 2 months ago

IIRC microsoft got got about this in the ie6 days or so, looks like they found their way back to their old behavior

[–] huf@hexbear.net 2 points 3 months ago (3 children)

none. you dont need a DE, you can just run a tiling wm and some terminals...

view more: next ›