copied from Dickson Labs copied from Ryan Bates
rake
p <dir>
will cd to your Projects directory
Tab completion is also added to rake and cap commands:
rake db:mi<tab>
cap de<tab>
To speed things up, the results are cached in local .rake_tasks~ and .cap_tasks~. It is smart enough to expire the cache automatically in most cases, but you can simply remove the files to flush the cache.
There are a few key bindings set. Many of these require option to be set as the meta key. Option-left/right arrow will move cursor by word, and control-left/right will move to beginning and end of line. Control-option-N will open a new tab with the current directory under macOS Terminal.
If there are some shell configuration settings which you want secure
or specific to one system, place it into a ~/.localrc
file. This will
be loaded automatically if it exists.
First symlink the git-completion script from the dotfiles repo:
ln -s bash/completion_scripts/git_completion ~/.git-completion.bash
Second, add this to your .localrc
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
If you want to use notification center instead of growlnotify (i.e. for git dude
), you can:
sudo cp scripts/growlnotify-replacement /usr/local/bin/growlnotify; chmod a+x /usr/local/bin/growlnotify
Taken from here. build a custom terminfo entry that clears ncv with a command like this:
{ infocmp -x screen-256color; printf '\t%s\n' 'ncv@,'; } > /tmp/t && tic -x /tmp/t
(when run as non-root, it will write a new screen-256color entry under ~/.terminfo/)
brew install node
npm install jshint -g
npm install jsxhint -g