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