Hacker Newsnew | past | comments | ask | show | jobs | submit | k4rthik's commentslogin

Added an option to view stats from all branches ( git-cal --all ), but that'll be slower for large repositories


Brill, it's still quite fast on my work repo, and much more useful to me. :)


Yes, git-cal excludes merge commits.


I agree with Paul Graham on this one. "Has any other company grown to Google's size and remained as benevolent? (Not saying they're perfect, just the best that big.)" (https://twitter.com/paulg/status/495948643149426688) I'll stick with Chrome for now as I find it slightly better than firefox.


We obviously have very different ideas about what “benevolent” means.


While I do agree, there have been many signs that times they are a changin'


Please enumerate at least some of those signs.


A different user replied with a very comprehensive list that is now inexplicably deleted. It included a story about Google using its leverage to oust location services competitor SkyHook: http://mobile.theverge.com/2011/05/12/google-android-skyhook...

Edit: looks like they changed it to a top-level comment: https://news.ycombinator.com/item?id=8186125


That's not a word that comes to mind when I think of Google+


I have

for cmd in $(compgen -c); do if [[ $cmd =~ ^[0-9a-zA-Z]+$ ]]; then eval "alias $cmd?='man $cmd'"; fi; done

in my .bashrc to alias command?=man command, saves some typing to get to man pages ( which I do very often )


Speaking of man pages, in earlier versions of Unix and Linux, I used to want to redirect the output of many man commands to files for later reading, e.g. if working on C, say I wanted to read 'man ioctl', 'man stdio', 'man signal', etc. But the man output had {n|t}roff formatting characters in it, for print output, which used to mess up vi. So I used to use this script I wrote, called m:

# Put this script in a directory in your PATH.

# m: pipe man output through col and save to file(s).

mkdir -p ~/man # Only creates the dir first time, including all dirs in the path.

for name: # in $* is implied

    man $name | col -bx > ~/man/$name.m
done

Do a "chmod u+x m" to be able to run it.

Then run it like this:

m ioctl stdio signal # or any other commands

Then:

pushd ~/man; view ioctl.m stdio.m signal.m; popd

to read those pages, now stripped of formatting characters.


Wow. I never knew about the `compgen -c` command to show bash command completions. Also from this reference [1] I found these:

    % compgen -b # built-ins
    % compgen -k # keywords
    % compgen -A function # functions
    % compgen -abckA function # everything
[1] http://www.cyberciti.biz/open-source/command-line-hacks/comp...


For zsh:

  for cmd in $(compgen -c); do if [[ $cmd =~ ^[0-9a-zA-Z]+$ ]]; then eval "alias $cmd\?='man $cmd'"    ; fi; done
# had to escape the ? in the alias name

Cool trick :)



Awesome, thank you. That's exactly what I'm looking for!


bash alternate to oh-my-sh : https://github.com/revans/bash-it. https://github.com/mathiasbynens/dotfiles has a pretty good collection of dotfiles repos mentioned in its readme.md. There are few more at http://dotfiles.github.io/


https://github.com/mathiasbynens/dotfiles is fantastic, I refer to that a lot.


Actually, it looks like Bashstrap is a fork of https://github.com/mathiasbynens/dotfiles. A lot of the commands, file structure, and even parts of the readme are a direct copy-paste…


I just added credit into the repo description. Thanks Mathias!


I thank you for that repo. I forked, customised, and occasionally cherry-pick from dotfiles, and it has improved my everyday terminal use significantly.


This reminds me of an old video of a student's room http://www.youtube.com/watch?v=DmuVD0X-fEE


I agree with all the heuristics mentioned except the one about English grammar. Though most people outside the major cities are educated in English medium, it is very common to them graduate without ever having an actual communication in English. I met a lot of Indians who are not very good with respect to grammar but are amazing programmers with enough communication skills to get the job done.


It is now. Added --github | gh option to pull public contributions data from github


Yes, the title is slightly misleading and different from the project title "github like contributions calendar on terminal". Adding github support (just to view the same graph on terminal rather than firing the web page for it) is one of the suggestions and is in TODO list.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: