Archive for Customizing mac

Git Autocompletion

Create a .git_settings directory in (actually you can choose any):

Users/username/

copy following file from git sources:

git_source_files/contrib/completion/git-completion.bash

execute following command to edit bashrc file:

mate /etc/bashrc

and add following lines:

#git autocompletion
source ~/.git_settings/git-completion.bash

Now you can go to your repository and type:

git st<tab>

Locking Mac Screen

To lock your screen you can use a key-combination of:

SHIFT + CTRL + EJECT

You need to also enable a “Require password after sleep or screen saver begins” feature in “System Preferences -> Security.

Total Terminal – Quake like console

Install and enjoy:
http://totalterminal.binaryage.com/

How to show full directory path in Finder window title

To display full path:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

To revert this changes:

defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO

Apply changes with:

killall Finder