Skip to content

Comment on Ask HN: What new skills have you learned since shelter-in-place started?parent

Comments

Wow, that's a lot!

Thanks for sharing, especially iTerm2 and MacVim.

A couple of tips for iTerm2:

1. iTerm2 looks in .bash_profile at start-up, not in .bashrc.

I imagine your system is the same, but I found the following advice in a forum which was pretty clever, I thought. If you have both a .bash_profile and a .bashrc and you're wondering which one iTerm2 is sourcing, type

export BASH_CONF="bash_profile"

somewhere in .bash_profile and

export BASH_CONF="bashrc"

in .bashrc. Then open up a new iTerm2 window and type

echo $BASH_CONF

on the command line to see which one got set.

2. Being able to select something with the mouse and then paste it with a right-mouse click is great. Here's the right way of setting it up:

a. Open iTerm's Preferences

b. General> Selection> Check "Copy to pasteboard on selection" (for me this was the default)

c. Pointer> Bindings> Double-click on "Right button single click"; Select "Paste from Clipboard"

The _wrong_ way to do it would have been to just set up the right button click to paste from selection. That would be bad because you would lose the ability to paste something that you had copied, say, using Cmd-C in a Word document.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.