aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/pd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-03-10 15:38:21 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-03-10 15:38:21 +1300
commit1d0ed04907b5334df7dcf27ddf7ca0ee431253ac (patch)
tree72ea27111afc7253eb89bebeec617d4f440e52f5 /bash/bashrc.d/pd.bash
parentDefine pd function (parent directory) (diff)
downloaddotfiles-1d0ed04907b5334df7dcf27ddf7ca0ee431253ac.tar.gz
dotfiles-1d0ed04907b5334df7dcf27ddf7ca0ee431253ac.zip
Handle default case correctly
Diffstat (limited to 'bash/bashrc.d/pd.bash')
-rw-r--r--bash/bashrc.d/pd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/pd.bash b/bash/bashrc.d/pd.bash
index f9fb2ab7..76316560 100644
--- a/bash/bashrc.d/pd.bash
+++ b/bash/bashrc.d/pd.bash
@@ -28,7 +28,7 @@ pd() {
target=${target%/}
target=${target%/*}
;;
- 2)
+ *)
printf 'bash: pd: too many arguments\n' >&2
return 1
;;