aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/rc/S50_functions
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2023-08-28 00:04:05 +0500
committerAnton Bobov <anton@bobov.name>2023-08-28 00:04:05 +0500
commit4417d432399adde0aecbd0f8a8bba1ad00162677 (patch)
tree8757d38ce386c25e183dd2fa0690b8491934d472 /files/.zsh/rc/S50_functions
parent47139223493040b51f6d4168bad7b993b5e7a2b2 (diff)
Updates
Diffstat (limited to 'files/.zsh/rc/S50_functions')
-rw-r--r--files/.zsh/rc/S50_functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions
index b9bd045..f510bd3 100644
--- a/files/.zsh/rc/S50_functions
+++ b/files/.zsh/rc/S50_functions
@@ -1,6 +1,7 @@
mcd() {
- mkdir -p "$1" && cd "$1"
+ [ $# = 1 ] && mkdir -p -- "$1" && cd -- "$1"
}
+compdef _directories mcd
ppgrep() {
pgrep "$@" | xargs --no-run-if-empty ps fp