Shell Arguments →
This in-depth article clarifies how your shell deals with word-splitting, quoting, and expansion. Well worth the read if you do any work in the shell.
Faster searching in the shell with ack
You’re already using ack, right? Great. A really simple way to speed up your searching in the shell is to trick out your ackrc file (~/.ackrc). This file takes a list of arguments to ack, which ack will then use as default arguments. This means you can update/set the various file types and format the output exactly how you’d like it to be formatted by default. Here are the contents...
Earlier today a link was making rounds of how Aleksandr Levchuk modified a USB pedal to act as a toggle for Vim’s insert mode. Press the pedal to enter insert mode, and depress it to return to normal mode. When I think about all of the different types of inputs that we use to operate other technology (for example, driving a car), it surprises me that today was the first time I’ve read...
Aliases on the shell
The easiest way to speed up your workflow in your shell is to create aliases for your most frequently used applications and their configuration settings. If you use zsh, these aliases can go into ~/.zshrc, but if you use bash they should go in ~/.bash_profile. A few sample aliases from my for git: alias g='git' alias ga='git add' alias gc='git commit -m' alias gac='git add -u && git...
Here is a quick script that lets you easily check the freshness of your git repository branches. Place this script somewhere in your PATH and make it executable. This script can then be ran within any git repository by calling `git fresh` within the repository. View on GitHub
To the cloud
Last weekend I decided to decouple my development environment from my local machine and move it to an EC2 instance in the cloud. Now, I can work on my projects on any computer anywhere as long as a computer has access to the Internet and a terminal emulator. For text editing I’m using Vim - I’ve been using this fantastic editor on my Mac for a while, so choosing this as my editor in...