simcop2387
16 years ago
ok... i've realized i do a STRANGE STRANGE THING habitually, mkdir $DIR, cd $DIR, ls
latest #15
@Kent
16 years ago
lols. I think I do that too
pkrumins
16 years ago
function c () { cd $1; ls -las }
shlomif says
16 years ago
I do that too, I think
立即下載
simcop2387
16 years ago
i think we're all not sure if the directory is empty after creation... maybe there's an easter egg in ext3fs that makes fun stuff magically
@Kent
16 years ago
its more combined, habit, cd is almost always followed by ls
@Kent
16 years ago
muscle memory kicks in
f00li5h
16 years ago
notes that `mkdir meowing; cd $_; ls` works just as well... bash has `$_` meaing "the last argument of the last command"
f00li5h
16 years ago
vi <tab><tab><tab> what the hell is in this directory!? damn it <esc>ddAls<enter> oooh, it's a capital!
pkrumins
16 years ago
compulsive directory listing disorder
Altreus says
16 years ago
I use `!$` for the last argument of the last command. Why is there an alternative?
f00li5h
16 years ago
that'd be a history command, like `^^` or `!!` rather than a variable ... i think one is bash-ish
SubStack
16 years ago
occasionally finds himself typing "cd ."
@Kent
16 years ago
now that, I can't explain
@Kent
16 years ago
cd ./foo # maybe
back to top