aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-04 13:22:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-04 13:22:31 +1300
commitaeddff4a227cdd5e41a5b088302925de1f8a0bdf (patch)
tree211219b4e08fc559df83ead63e70c6082678594d /bash
parentPretty sure Newsbeuter configuration isn't problem (diff)
downloaddotfiles-aeddff4a227cdd5e41a5b088302925de1f8a0bdf.tar.gz
dotfiles-aeddff4a227cdd5e41a5b088302925de1f8a0bdf.zip
Use builtin prefix for cd call in func
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/mkcd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/mkcd.bash b/bash/bashrc.d/mkcd.bash
index 060e5f4a..4f07be00 100644
--- a/bash/bashrc.d/mkcd.bash
+++ b/bash/bashrc.d/mkcd.bash
@@ -1,5 +1,5 @@
# Create a directory and change into it
mkcd() {
- mkdir -p -- "$1" && cd -- "$1"
+ mkdir -p -- "$1" && builtin cd -- "$1"
}