aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoey Hoer <joey@gaugeinteractive.com>2014-11-05 12:16:36 -0500
committerMathias Bynens <mathias@qiwi.be>2014-11-05 18:19:26 +0100
commitb740cb4f6c7cec3780866d69cbf60542c7a7494d (patch)
treeac6fc6b45a015952d9d9d6360f2ab2424f459816
parent7010a15b06f0762e44db85a5eac8d7be89cbfa2a (diff)
downloaddotfiles-b740cb4f6c7cec3780866d69cbf60542c7a7494d.tar.gz
dotfiles-b740cb4f6c7cec3780866d69cbf60542c7a7494d.tar.bz2
dotfiles-b740cb4f6c7cec3780866d69cbf60542c7a7494d.zip
.functions: Make `mkd` `cd` into the last directory in the list
…rather than the first. Closes #447 and #450.
-rw-r--r--.functions2
1 files changed, 1 insertions, 1 deletions
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