You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
549 B
27 lines
549 B
13 years ago
|
#
|
||
|
# Defines Mac OS X aliases and functions.
|
||
|
#
|
||
|
# Authors:
|
||
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||
|
#
|
||
14 years ago
|
|
||
13 years ago
|
# Change directory to the current Finder directory.
|
||
|
alias cdf='cd "$(pfd)"'
|
||
14 years ago
|
|
||
13 years ago
|
# Push directory to the current Finder directory.
|
||
|
alias pushdf='pushd "$(pfd)"'
|
||
14 years ago
|
|
||
13 years ago
|
# Open files in Quick Look.
|
||
13 years ago
|
function ql {
|
||
13 years ago
|
(( $# > 0 )) && qlmanage -p "$@" &> /dev/null
|
||
14 years ago
|
}
|
||
|
|
||
13 years ago
|
# Delete .DS_Store and __MACOSX directories.
|
||
13 years ago
|
function rm-osx-cruft {
|
||
13 years ago
|
find "${@:-$PWD}" \( \
|
||
|
-type f -name '.DS_Store' -o \
|
||
|
-type d -name '__MACOSX' \
|
||
|
\) -print0 | xargs -0 rm -rf
|
||
13 years ago
|
}
|
||
13 years ago
|
|