diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-04 13:22:31 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-10-04 13:22:31 +1300 |
commit | aeddff4a227cdd5e41a5b088302925de1f8a0bdf (patch) | |
tree | 211219b4e08fc559df83ead63e70c6082678594d /bash | |
parent | Pretty sure Newsbeuter configuration isn't problem (diff) | |
download | dotfiles-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.bash | 2 |
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" } |