Bash $PS1 Generator -
Use this to generate custom Bash prompts.
"put a burger in your shell", or any emoji, for that matter
giant robots smashing into other giant robots: Vim Splits - Move Faster and More Naturally -
Most of us are Vim users and have tweaked our favorite editor for speed and convenience. See thoughtbot’s dotfiles.
One of my favorite tools is the window split. Here is a quick splits overview and configurations to use them more effectively.
Create a vertical split using
evyna asked: Neat wittle plugin I made --> github -> jaxbot -> brolink
Thanks for sharing! That’s really cool.
Hey everybody check it out:
On a few recent articles people have commented about window resizing (unfortunately all my comments got lost because I moved some disqus things around, and, just don’t worry about it, OK?)
CTRL-W = (to set windows to all equal height),
z in normal mode, a number, then enter to set the window to that height), and many more. Take control of your windows today!
Again from Tim Pope (I did say he was indefatigable), vim-tbone lets you interact with tmux from vim, with handy commands like
Another one from the indefatigable Tim Pope, vim-dispatch lets you run tests or compile asynchronously. Looks like it might take a little configuration to work for your own particular application, but once you do it looks like it could be super useful.
The video by itself makes is all worth it:
Introducing dispatch.vim from Tim Pope on Vimeo.
Yesterday’s reblog talked about using
gq in visual mode to wrap a line to less than 80 characters.
gqgq in normal mode will do this to a single line (or multiple lines with a count.)
You have an existing block of text or code in vim. You want to re-format it to wrap to 80-characters.
You might want this setting to apply automatically within certain file types like Markdown:
au BufRead,BufNewFile *.md setlocal textwidth=80
We have that setting in thoughtbot/dotfiles.
Select the lines of text you want to re-format:
This plugin will automatically resize your window to 80 (or however many you specify) columns when it’s active.