Live data from Hacker News

Alias.sh: for finding, sharing and storing bash aliases

alias.sh

51–55 of 55 posts

Re: Alias.sh: for finding, sharing and storing bash aliases

#51
post #37

Top two are wrong… Not a good thing. It's always the same badly written snippets that get copy-pasted across websites without anyone really understanding what it does (hence the copy/paste). > alias servethis="python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'" python -m SimpleHTTPServer # python 3 python -m http.server # Python 3 > extract () { /* useless stuff */ } tar xf

python one works fine for me. I tried tar xf on a zip file and it didn't work?

Re: Alias.sh: for finding, sharing and storing bash aliases

#52
post #51
post #37

Top two are wrong… Not a good thing. It's always the same badly written snippets that get copy-pasted across websites without anyone really understanding what it does (hence the copy/paste). > alias servethis="python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'" python -m SimpleHTTPServer # python 3 python -m http.server # Python 3 > extract () { /* useless stuff */ } tar xf

python one works fine for me. I tried tar xf on a zip file and it didn't work?

tar xf doesn't work on zip, rar, 7z, or plain compressed files (ie log.gz instead of log.tar.gz)

Additionally I prefer "verb noun" form over "program noun", so I like extract. I already alias open=xdg-open (so I can type "open somefile.pdf" or "open somefile.doc", etc)

Re: Alias.sh: for finding, sharing and storing bash aliases

#53
post #37

Top two are wrong… Not a good thing. It's always the same badly written snippets that get copy-pasted across websites without anyone really understanding what it does (hence the copy/paste). > alias servethis="python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'" python -m SimpleHTTPServer # python 3 python -m http.server # Python 3 > extract () { /* useless stuff */ } tar xf

There are versions of tar (that I have to use) which don't autodetect the compression type. And that alias includes non-tar filetypes.

Re: Alias.sh: for finding, sharing and storing bash aliases

#54
post #5
post #4

Earlier quoted context omitted.

Some mates of mine threw this together, and the first thing I told them was that someone on HN would complain about the colour scheme

We have a user voice account, we're posting on here looking for some useful feedback.

I'm guessing you changed it since this feedback, but I really like the current color scheme. The lighter-grey bubbles around the actual code do a nice job directing focus to the important bits.

Re: Alias.sh: for finding, sharing and storing bash aliases

#55
post #5

Earlier quoted context omitted.

We have a user voice account, we're posting on here looking for some useful feedback.

I'm guessing you changed it since this feedback, but I really like the current color scheme. The lighter-grey bubbles around the actual code do a nice job directing focus to the important bits.

It was a very subtle change but yeah we lightened it up a bit after the feedback from this thread. We made quite a few changes actually and summarised them here: http://alias.sh/thank-you-hacker-news-community
Post reply on HN