From b740cb4f6c7cec3780866d69cbf60542c7a7494d Mon Sep 17 00:00:00 2001 From: Joey Hoer Date: Wed, 5 Nov 2014 12:16:36 -0500 Subject: .functions: Make `mkd` `cd` into the last directory in the list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …rather than the first. Closes #447 and #450. --- .functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.functions') diff --git a/.functions b/.functions index cd29e11..a5e3736 100644 --- a/.functions +++ b/.functions @@ -18,7 +18,7 @@ function calc() { # Create a new directory and enter it function mkd() { - mkdir -p "$@" && cd "$@"; + mkdir -p "$@" && cd "$_"; } # Change working directory to the top-most Finder window location -- cgit v1.2.3