diff options
| author | Anton Bobov <anton@bobov.name> | 2023-08-28 00:04:05 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2023-08-28 00:04:05 +0500 |
| commit | 4417d432399adde0aecbd0f8a8bba1ad00162677 (patch) | |
| tree | 8757d38ce386c25e183dd2fa0690b8491934d472 /files/.zsh/rc/S50_functions | |
| parent | 47139223493040b51f6d4168bad7b993b5e7a2b2 (diff) | |
Updates
Diffstat (limited to 'files/.zsh/rc/S50_functions')
| -rw-r--r-- | files/.zsh/rc/S50_functions | 3 |
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 |
