Bash: cd into whatever is the forefront Finder window.

This commit is contained in:
Artem Sapegin 2013-04-25 23:54:10 +04:00
parent 1fca62c5e3
commit 84636be8bd

View File

@ -8,6 +8,11 @@ function md() {
mkdir -p "$@" && cd "$@"
}
# cd into whatever is the forefront Finder window.
cdf() {
cd "`osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)'`"
}
# Find shorthand
function f() {
find . -name "$1" 2>/dev/null