2012-02-01 12:37:51 +08:00
|
|
|
#
|
|
|
|
# Defines Mac OS X aliases and functions.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
2011-05-28 23:27:50 +08:00
|
|
|
|
2012-07-24 03:00:44 +08:00
|
|
|
# Return if requirements are not found.
|
2012-06-03 02:20:57 +08:00
|
|
|
if [[ "$OSTYPE" != darwin* ]]; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
2012-08-05 02:48:32 +08:00
|
|
|
#
|
|
|
|
# Aliases
|
|
|
|
#
|
|
|
|
|
2014-02-03 09:08:55 +08:00
|
|
|
# Changes directory to the current Finder directory.
|
2011-10-12 11:13:58 +08:00
|
|
|
alias cdf='cd "$(pfd)"'
|
2011-02-18 20:17:00 +08:00
|
|
|
|
2014-02-03 09:08:55 +08:00
|
|
|
# Pushes directory to the current Finder directory.
|
2011-10-12 11:13:58 +08:00
|
|
|
alias pushdf='pushd "$(pfd)"'
|