HN user

jetpm

53 karma
Posts6
Comments18
View on HN

I always wanted this, typing paths is so annoying. I think the command line got stuck in the last millennium. So much things could be automated there, especially command completion. Why do I have to remember the stupid -xfv parameters for tar or whatever. Computers should be like magic.

What could be improved: if I type "nano <ctrl f> index." I see some index.js files but not my index.html file from my node project.

Ah ok it's in a different folder, but it would be cool if it showed anyways.

When I think about it, it feels like there is some sort of mental barrier that I have to overcome to make plans with strangers. Maybe when the meetups would be less personal like 20 random people going to a bar or club, I'd rather join in on something. Then nobody would realize if I leave, but if I bond with some people its fine.

I made a bash function for easier alias binding. It makes aliases immediately available and permanent. Also you don't need quotes so you can use tab completion etc. It goes like this:

ali <name of alias> <command>

to get it put this in your .bashrc

  function ali() {  
   echo "alias $1='${@:2}'" >> ~/.bashrc   #in ubuntu use   ~/.bash_aliases  
   echo "made alias:";  
   echo "alias $1='${@:2}'";  
   source ~/.bashrc;  #reload bashrc  
  }

When I realize I type a command often, I just push the up arrow to get the command again, append "ali" infront of it and turn it to an alias. Works direclty.

And of course the alias to show the list of all aliases:

  alias alis='cat ~/.bash_aliases'

awesome and scary at the same time. awescary. If I understood it correctly this should work for nodejs servers as well, for example when they create random ids for users or urls.