mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-07-06 01:29:44 +00:00
f4ca9ebfc9
Add the following functions: - is-darwin - is-linux - is-bsd - is-cygwin And apply them everywhere I found code doing that what these functions do.
22 lines
352 B
Bash
22 lines
352 B
Bash
#
|
|
# Defines macOS aliases and functions.
|
|
#
|
|
# Authors:
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
# Return if requirements are not found.
|
|
if ! is-darwin; then
|
|
return 1
|
|
fi
|
|
|
|
#
|
|
# Aliases
|
|
#
|
|
|
|
# Changes directory to the current Finder directory.
|
|
alias cdf='cd "$(pfd)"'
|
|
|
|
# Pushes directory to the current Finder directory.
|
|
alias pushdf='pushd "$(pfd)"'
|