Many times a day I’m in iTerm and use the command+T shortcut to open a new tab. I want this tab to open in the same folder I’m in, not the root folder, so I then have to annoyingly navigate back to the folder from the previous tab.
But there’s an easy fix for this!
Under Settings in the Profile tab, in the Working Directory section, select the button for “Reuse previous session’s directory” and bingo! new tabs will open in the same folder from the previous tab.
You can customize further by clicking on “Advanced Configuration” -> “Edit”, which adds options for new tabs, new windows, and new split panes.
I had no idea that you can make your dock icons transparent when you hide an app. In fact, I didn’t even know you can ‘hide’ apps….I always just either used ‘alt+tab’ to switch between apps, or minimized them. So I learned something!
To make your hidden app icons turn translucent in the Dock, all it takes is a simple Terminal command:
I accidentally found a really cool Terminal keyboard shortcut yesterday. You may already know that Terminal will autocomplete a file name or method name if you press tab after typing a portion of the word. For example:
You can see I typed ls to list the files and folders in the current location. Then I started typing cd Fi to change the directory to “FiveMinuteChinese”. As a shortcut I can now press the Tab key, and Terminal will autocomplete the folder name:
Now what I just learned was that if you press the Tab key twice, Terminal will show you a list of possible options. See the screenshot below:
Here I typed cd C, then pressed Tab twice, and Terminal gave me a list of all files or folders that start with the letter “C”. Pretty cool huh? If you’re using irb or another console type environment, you can use this same shortcut to give you a list of possible methods or autocomplete method names.