Explore the source / dotfiles

Inside dotfiles.

Shell, terminal, backup, and the configuration that joins them. Browse the current public files here, or visit the dotfiles repository on GitHub.

dotfiles / main

home/.zsh/integrations/macbackup.zsh

View on GitHub
# Loaded before compinit by ~/.zshrc; also safe to source in an existing shell.
() {
  local completion_dir="$HOME/.zsh/completions"
  [[ -r "$completion_dir/_macbackup" ]] || return 0

  if (( ${fpath[(Ie)$completion_dir]} == 0 )); then
    fpath=("$completion_dir" "${fpath[@]}")
  fi
  autoload -Uz _macbackup
  if (( $+functions[compdef] )); then
    compdef _macbackup macbackup
  fi
}