Open new iTerm tab in the same folder

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.

Profile settings
advanced settings

You can customize further by clicking on “Advanced Configuration” -> “Edit”, which adds options for new tabs, new windows, and new split panes.

Awesome!

Credit here https://apple.stackexchange.com/questions/148508/how-to-open-a-new-tab-in-iterm-in-the-same-folder-as-the-one-that-is-open

Advertisements

Redact Text in Preview

So the simplest way to redact text in Preview is to cover it with a black box then to save it as an image file, so it is not editable.

  • Click on the Show Markup Toolbar
  • Click on the Shapes button, and select the square
  • Draw a box over the text you want to redact
  • Export as a image file. File -> Export -> (pick .tiff or .png)

Credit here

Hide Content in Mac Preview Screenshots

I was looking for a quick way to blur out sensitive information in a screenshot using Preview on a Mac. While I didn’t find an actual blur tool, something can can accomplish the same thing is simply drawing a box around the area you want to hide and pressing delete – see screenshot below where my Access Key ID is whited out:

Screen Shot 2017-08-08 at 7.36.11 AM

This seems to only work in image files, not pdfs.

Source:

https://forums.macrumors.com/threads/is-there-a-way-to-blur-text-in-preview.1744916/

https://apple.stackexchange.com/questions/72971/tool-to-quickly-hide-blur-redact-text-in-screenshot

Open Embedded Visio Flowcharts in Word on Mac and Windows

For some reason, on a Mac using Parallels Desktop to run Word and Visio in Windows, I cannot right click on an embedded Visio flowchart to open it in Visio. Usually, when you right click on an embedded Visio chart, you get the “Visio object” option, which includes an option to “edit”. But mine doesn’t have that option!!

screen-shot-2017-02-15-at-7-30-13-am

However, I figured out that a simple keyboard shortcut can let you open the Visio for editing.

In Word running in Windows, use alt+double click (or option+double click) to open the embedded Visio chart in Visio for editing. When you hold down the alt/option key while double clicking on the embedded flowchart, it will open in Visio. Sweet!

Simple, yet hidden!

Make Hidden Apps Translucent in Mac Dock

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:

defaults write com.apple.Dock showhidden -bool YES

Then, you need to restart the Dock, which you can do using

killall Dock

To reverse this setting, simple run “No” instead of yes

defaults write com.apple.Dock showhidden -bool NO

Oh, and also the keyboard shortcut for hiding an app is “cmd+H”

credit here

Sync Notebooks on OneNote Mac

I annoyingly had a OneNote notebook I used at work on a PC, but I couldn’t get it to sync into OneNote on my Mac.

Here’s the secret – it won’t automagically appear, you have to manually open the notebook.

Click on the plus sign in the Notebook dropdown.

Screen Shot 2016-01-28 at 7.16.47 AM

In the popup window that opens, click “Open”, then select OneDrive or wherever your Notebook is synced, and then choose the Notebook you want to open.

Screen Shot 2016-01-28 at 7.19.04 AM

That’s it! Kind of weird why Microsoft would not just make all Notebooks sync automagically, but well, its Microsoft.

Add Git Autocomplete to Terminal

A nifty edition to the git command line is autocomplete. First, get the git completion script:

curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash

Then edit your ~/.bash_profile file to add the following code:

if [ -f ~/.git-completion.bash ]; then
  . ~/.git-completion.bash
fi

(go here for help on editing your .bash_profile)

That’s it. Now you can type git and press Tab twice to get an autocomplete list of commands.

credit:

http://apple.stackexchange.com/questions/55875/git-auto-complete-for-branches-at-the-command-line/55886#55886

http://code-worrier.com/blog/autocomplete-git/