diff options
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -21,6 +21,11 @@ function mkd() { mkdir -p "$@" && cd "$@" } +# Change working directory to the top-most Finder window location +function cdf() { # short for `cdfinder` + cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')" +} + # Determine size of a file or total size of a directory function fs() { if du -b /dev/null > /dev/null 2>&1; then |