News for hackers. Stuff that matters.
Re:Alias.sh: for finding, sharing and storing bash aliases by arcatek on Monday January 14, 2013 @01:10AM (#5053490)
Command line fu (http://www.commandlinefu.com/commands/browse) already contains a pretty big collection of useful shell snippets, I'm not sure that making another website will help.

[edit] However, I have to admit that I prefer your design. :)

Re:Alias.sh: for finding, sharing and storing bash aliases by mambodog on Monday January 14, 2013 @02:48AM (#5053728)
One thing that isn't really highlighted as much as it should be is that you can directly grab or source your opted-in aliases, eg.

    wget -q -O - "$@" https://alias.sh/user/[userid]/alias >> ~/.bash_aliases
or, if you like to live dangerously:

    source <(wget -q -O - "$@" https://alias.sh/user/[userid]/alias)
Re:Alias.sh: for finding, sharing and storing bash aliases by fschwehn on Monday January 14, 2013 @03:58AM (#5053875)
for me the wget thing doesn't work. i get some aliases, but not those i have been adding to my list.
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy14 on Monday January 14, 2013 @04:14AM (#5053903)
fschwehn, can you try again. We picked the bug up you were describing.

Also aliases are meant to be public. We may have private aliases in the future.

Thanks for the feedback. Much appreciated.

Re:Alias.sh: for finding, sharing and storing bash aliases by fschwehn on Monday January 14, 2013 @05:23AM (#5054069)
thanks, now works like a charm!
Re:Alias.sh: for finding, sharing and storing bash aliases by sam152 on Monday January 14, 2013 @01:17AM (#5053509)
This is a great site. I might post a few on alias.sh. A lot of them however are just cool commands you can run, not commands that are packaged into an alias.
Re:Alias.sh: for finding, sharing and storing bash aliases by vincentkriek on Monday January 14, 2013 @01:50AM (#5053584)
Isn't an alias just a cool command with a shortcut? I agree that on the site it's just `command` and not `alias short_cmd=command`, but the idea is the same.
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy14 on Monday January 14, 2013 @01:54AM (#5053595)
One of the advantages of this site is that you can build a list of your aliases and then there are snippets that are provided to copy and source them into your bash aliases file. I guess the advantage is it allows you to a build a list on your own profile and easily sync them across machines. Does this site achieve that?
Re:Alias.sh: for finding, sharing and storing bash aliases by nsmartt on Monday January 14, 2013 @01:55AM (#5053596)
An alias is the sort of command you use often, or an interesting new way of using a command you use often (e.g. ls).

That's the difference.

Re:Alias.sh: for finding, sharing and storing bash aliases by thomseddon on Monday January 14, 2013 @04:37AM (#5053946)
Heart almost skipped a beat when first glanced at the welcome email, last two lines:

username: thomseddon password: Your password

With the actual text "Your password", Phew!! Not quite sure it's necessary to include this line, for the sake of your users cardiovascular health you may wish to consider removing it!

(Oh, do really like this site, started using it already as you can see!)

Re:Alias.sh: for finding, sharing and storing bash aliases by roevhat on Monday January 14, 2013 @02:53AM (#5053740)
I don't know if it is my browser, but to me I get the feeling the site is disabled, with the very darkend colors. It's almost as if a modal is showing, and the rest of the page is faded out - but I can't see no modal. Just my first impressions. But other than that: Really cool - going straight to the bookmarks!
Re:Alias.sh: for finding, sharing and storing bash aliases by decad on Monday January 14, 2013 @03:02AM (#5053760)
Had the exact same reaction when I first opened the site, thought my eyes had gone funny.
Re:Alias.sh: for finding, sharing and storing bash aliases by sleepyscene on Monday January 14, 2013 @04:03AM (#5053887)
Hey guys, thanks for the feedback. I did the design for the site.

Tonight I'm planning on bumping up the contrast and it seems calibrating my monitor also ;)

Re:Alias.sh: for finding, sharing and storing bash aliases by peter_l_downs on Monday January 14, 2013 @12:39AM (#5053426)
This looks great! The 'freq' alias is new to me -- very cool. I would find this more useful were I not to have to create an account before uploading my aliases.
Re:Alias.sh: for finding, sharing and storing bash aliases by trampy9010 on Monday January 14, 2013 @06:52AM (#5054275)
Yeah, sorting your bash history helps highlight what you spend most of your time doing and if that can be cut down at all.
Re:Alias.sh: for finding, sharing and storing bash aliases by l-p on Monday January 14, 2013 @08:23AM (#5054495)
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
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @08:34AM (#5054524)
We only launched this morning so they're all very new. We do have a voting feature on the full page view so we're hoping the poorer aliases sink over time. We also intend to make the voting more prominent.
Re:Alias.sh: for finding, sharing and storing bash aliases by Despite on Tuesday January 15, 2013 @03:11AM (#5059248)
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 by dschep on Monday January 14, 2013 @08:40AM (#5054557)
I think you mean Python 2 for the SimpleHTTPServer example.
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @11:55PM (#5058713)
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 by qu4z-2 on Tuesday January 15, 2013 @01:09AM (#5058977)
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 by CJefferson on Monday January 14, 2013 @06:37AM (#5054233)
This website is quite fun, except it has (for me) one fatal flaw - if I use the automated stuff I am stuck with whatever name someone else decided to give the alias.

For example, http://alias.sh/open-any-file-default-command-file I find so useful I shorted the alias to 'o'. Now, I could make another alias with a different name, but that seems like a bad idea..

Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @08:36AM (#5054533)
Nope feel free to create another alias. Aliases can be voted up or down so eventually over time the best ones will rise to the top. Also if you want it on your profile just add it.

We did think about this and plan on adding private aliases soon so you can add them without cluttering the site or if you just don't want to share. :)

Re:Alias.sh: for finding, sharing and storing bash aliases by glazskunrukitis on Monday January 14, 2013 @07:57AM (#5054433)
First time I visited the website I was waiting for a popup to show up because the page seemed to have an overlay. Turns out that's the color scheme.
Re:Alias.sh: for finding, sharing and storing bash aliases by ralph on Monday January 14, 2013 @07:00AM (#5054302)
I eschew aliases, using them only when necessary, e.g. when changing directory. There's many places in Unix where a knowledgeable user can kick off a command and in many aliases won't work. This gets annoying and is solved by having ~/bin/... wherever possible. The overhead is minimal, many being one-line of code starting with exec.
Re:Alias.sh: for finding, sharing and storing bash aliases by jackalope on Monday January 14, 2013 @07:31AM (#5054366)
I use aliases to open frequently used programs with specific configuration files (mutt, for example, to manage multiple email accounts) or with long complex arguments (rdesktop, for example, for connections to multiple hosts). I also use ~/bin/ when I want something in my path that has a purpose local to me, but can be widely deployed to the various platforms I work on. But for one-liners that don't work as aliases (used too infrequently or not portable) I use Makefiles. It's nice to be able to cd into a working directory and type 'make update' on any machine without trying to remember which package manager to use and how to invoke it.
Re:Alias.sh: for finding, sharing and storing bash aliases by larelli on Monday January 14, 2013 @08:24AM (#5054498)
I really like the idea, but I'd do even more so if I could install a cronjob to automatically download a file with all aliases I previously added to my online profile. Of course this comes with security implications you'd have to sort out. Please do this (or let me help you with it).

Edit: I just found the feature on the site and am happy now. (:

Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @08:32AM (#5054516)
You can use the second command on your profile page.

source <(wget -q -O - "$@" https://alias.sh/user/7/alias)

This will source it every time you login. Otherwise you could easily put the first command on your profile in a cronjob to run one daily etc.

Re:Alias.sh: for finding, sharing and storing bash aliases by larelli on Monday January 14, 2013 @07:03PM (#5057545)
Are you the benjy from the site? Thanks for the help.
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @11:49PM (#5058689)
Yeah that's me.
Re:Alias.sh: for finding, sharing and storing bash aliases by cdcarter on Monday January 14, 2013 @02:17AM (#5053645)
A search function would be great, showing just the popular tags makes it hard to find new tricks.
Re:Alias.sh: for finding, sharing and storing bash aliases by reddiculon on Monday January 14, 2013 @04:42AM (#5053967)
I agree; that and being able to tag and comment on aliases. Some way of posting alternatives for the same task would be great too.
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @08:54AM (#5054623)
Comments already exist. You can comment while logged in and viewing an alias. You can use them to post alternatives for now. This is something that will be considered as a new feature though in our next sprint.
Re:Alias.sh: for finding, sharing and storing bash aliases by telemachos on Monday January 14, 2013 @07:40AM (#5054386)
A promising start. But it would really help if it were possible to edit aliases you've posted. (For example, I want to clean up the tags for something I posted, but that doesn't seem possible.)
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @08:39AM (#5054556)
Editing aliases could cause a security issue. Eg if someone is using your alias and you edited it to be malicious. We're planning on having private aliases which will be editable.

If you have a alias you want editing then send us an email from your email on your account and I can help you fix it up. admin at alias dot sh

Re:Alias.sh: for finding, sharing and storing bash aliases by RusAlex on Monday January 14, 2013 @09:26AM (#5054725)
Keep your bash aliases at github public repository or anywhere in a private repository. it's more easy to do git pull mydotfiles.git rather than using copy pasting from any web resource.
Re:Alias.sh: for finding, sharing and storing bash aliases by subsection1h on Monday January 14, 2013 @08:30PM (#5057936)
Nice site!

Consider using the site's name consistently. The logo is "alias", the home page refers to "Alias.sh", and the About page refers to "alias.sh".

Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @11:52PM (#5058701)
Good suggestion, it's definitely something we are on the fence about. I think "Alias" is better but it also made some of the copy sound a little confusing.
Re:Alias.sh: for finding, sharing and storing bash aliases by jogloran on Monday January 14, 2013 @01:42AM (#5053564)
One of the sort criteria is "highested voted".
Re:Alias.sh: for finding, sharing and storing bash aliases by sam152 on Monday January 14, 2013 @01:46AM (#5053577)
Good catch, fixed.
Re:Alias.sh: for finding, sharing and storing bash aliases by reddiculon on Monday January 14, 2013 @01:48AM (#5053580)
I'm sure you mean "fixded" ;)
Re:Alias.sh: for finding, sharing and storing bash aliases by gelstudios on Monday January 14, 2013 @08:17AM (#5054482)
I like this, but I think the author or contributor of the alias should be made public (like next to the vote/score buttons)
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy1 on Monday January 14, 2013 @08:52AM (#5054612)
Good suggestion. I just added it to the full page view and will consider adding it throughout the site in the next sprint.
Re:Alias.sh: for finding, sharing and storing bash aliases by kawsper on Monday January 14, 2013 @03:39AM (#5053834)
This is a little dumb

    alias process='ps -ax'
:)
Re:Alias.sh: for finding, sharing and storing bash aliases by brianberns on Monday January 14, 2013 @12:52AM (#5053447)
Gray text on a gray background. No thanks.
Re:Alias.sh: for finding, sharing and storing bash aliases by mambodog on Monday January 14, 2013 @12:55AM (#5053456)
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
Re:Alias.sh: for finding, sharing and storing bash aliases by benjy14 on Monday January 14, 2013 @12:58AM (#5053461)
We have a user voice account, we're posting on here looking for some useful feedback.
Re:Alias.sh: for finding, sharing and storing bash aliases by brightghost on Saturday January 19, 2013 @01:48PM (#5084271)
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 by benjy1 on Saturday January 19, 2013 @06:26PM (#5085227)
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
Re:Alias.sh: for finding, sharing and storing bash aliases by reddiculon on Monday January 14, 2013 @01:11AM (#5053495)
Link for the lazy: https://alias.uservoice.com/
Re:Alias.sh: for finding, sharing and storing bash aliases by Ambadassor on Monday January 14, 2013 @01:13AM (#5053497)
I was instinctively looking for a modal window to close to make the colors vibrant again. It's a somewhat jarring experience.
Re:Alias.sh: for finding, sharing and storing bash aliases by danielhunt on Monday January 14, 2013 @05:03AM (#5054010)
A very easy to read grey on a very nice grey background.

Yes please.

Re:Alias.sh: for finding, sharing and storing bash aliases by af3 on Monday January 14, 2013 @08:01AM (#5054446)
"VC thinks I need an app for my tits" (probably not a direct quote).