The Greater Fool

Posts for Tag: development

Shells, Terminals, and tmux, oh my!

I've been working in a lot of non-microsoft development lately, namely the xAMP stack. Trying to find a suitable development environment has been a challenge. I've tried Eclipse, Netbeans, MAMP, MacVim and found all of them wanting in some fashion or another. It's either too bloated or slow or just feels wrong. Finally this weekend, I was determined to get back to the root and use Terminal (see what I did there?)

Learning to go CLI after a career in IDE is somewhat intimidating. Luckily, I started learning this stuff in the *nix heyday of the early nineties (I remember reading on USENET that some Finnish guy name Linus was going to port unix to the x86 platform). So I was at least comfortable in vi and bash, if not proficient. Started with plain ole Terminal and quickly moved to iTerm2 and quickly built tmux and I was off. I could do most things on the CLI, from creating directories to vim to executing the occasional sudo make install to get stuff running. 

Ironically, the most taxing thing to learn how to do was to copy a directory and all its contents to a new directory. I tried copydir and cpdir without any success. With a little help from my favorite search engine, I found a nice unix command line primer on ibm's site of all places. If you ever need to copy the contents of a directory from one to another, here it is:

tar cf - /path/to/original |  \
  (mkdir -p /path/to/copy; cd /path/to/copy; tar xvf -)

I'm sure there will be more. Now tomorrow I have to switch back to Windows and MS development. I hope I remember how to start Visual Studio.