diff --git a/home/user/.config/zsh/completion b/home/user/.config/zsh/completion index bd2edb2..56fefff 100644 --- a/home/user/.config/zsh/completion +++ b/home/user/.config/zsh/completion @@ -48,3 +48,6 @@ bindkey -M menuselect '^e' undo bindkey -M menuselect '^[' cancel bindkey -M menuselect '^M' check-command bindkey -M menuselect '^I' accept-and-infer-next-history + + +compdef _directories mcd diff --git a/home/user/.config/zsh/functions b/home/user/.config/zsh/functions index 83b62d7..b080335 100644 --- a/home/user/.config/zsh/functions +++ b/home/user/.config/zsh/functions @@ -96,7 +96,7 @@ cleanup-directory() { } cleanup-downloads() { - local -r downloads_directory="${HOME}/downloads" + local -r downloads_directory="${XDG_DOWNLOAD_DIR}" local -r log_file="${downloads_directory}/cleanup.log" touch "${log_file}"