diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-19 11:11:42 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-19 11:11:42 +1300 |
commit | 84f9ddc9214401bdb7e5f6f3e5133d24b29e4917 (patch) | |
tree | 88dc8ad4a3df161792718e7718c79d17ee6d5254 /sh/shrc.d/mkcd.sh | |
parent | Merge branch 'release/v3.2.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-573b7ee745b119cd0fa9432af7e40302f2cd8fbb.tar.gz (sig) dotfiles-573b7ee745b119cd0fa9432af7e40302f2cd8fbb.zip |
Merge branch 'release/v3.3.0'v3.3.0
* release/v3.3.0:
Bump VERSION
Add sh.vim mapping to insert '\'' quickly
Remove now-unneeded shellcheck disable rules
Follow ShellCheck's recommendation of -z over !-n
Adjust PS1-PS4 reset
Use exec for clearer subshell semantics
Use `command` consistently, silence ShellCheck
Add /j flag to :vimgrep shortcut
Diffstat (limited to 'sh/shrc.d/mkcd.sh')
-rw-r--r-- | sh/shrc.d/mkcd.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sh/shrc.d/mkcd.sh b/sh/shrc.d/mkcd.sh index cd882b51..bfe8a142 100644 --- a/sh/shrc.d/mkcd.sh +++ b/sh/shrc.d/mkcd.sh @@ -1,5 +1,6 @@ # Create a directory and change into it mkcd() { - command -p mkdir -p -- "$1" || return - command cd -- "$1" + mkdir -p -- "$1" || return + # shellcheck disable=SC2164 + cd -- "$1" } |