aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/pushd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-30 14:17:01 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 14:17:01 +1300
commitf02abc131991a754a9aabed14c6acdbed253a1de (patch)
tree800027c8a3460f911a68db65bf330a2fbcf471e7 /bash/bashrc.d/pushd.bash
parentMerge branch 'hotfix/v2.1.1' (diff)
parentBump VERSION (diff)
downloaddotfiles-f02abc131991a754a9aabed14c6acdbed253a1de.tar.gz
dotfiles-f02abc131991a754a9aabed14c6acdbed253a1de.zip
Merge branch 'release/v2.2.0'v2.2.0
* release/v2.2.0: Bump VERSION Add `abort` attribute to new autoload function Suppress a couple of ShellCheck errors Remove redundant return short-circuit Add explanatory comments for version check Use ||/&& short-circuiting only for flow control Drop support for Bash <= 3.0
Diffstat (limited to 'bash/bashrc.d/pushd.bash')
-rw-r--r--bash/bashrc.d/pushd.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/pushd.bash b/bash/bashrc.d/pushd.bash
index 4a6e4be3..e708d3e8 100644
--- a/bash/bashrc.d/pushd.bash
+++ b/bash/bashrc.d/pushd.bash
@@ -1,4 +1,5 @@
# Make pushd default to $HOME if no arguments given, much like cd
pushd() {
- builtin pushd "${@:-"$HOME"}" || return
+ # shellcheck disable=SC2164
+ builtin pushd "${@:-"$HOME"}"
}