<commit_before>if [[ ! -o interactive ]]; then
    return
fi

compctl -K _agency agency

_agency() {
  local word words completions
  read -cA words
  word="${words[2]}"

  if [ "${#words}" -eq 2 ]; then
    completions="$(agency commands)"
  else
    completions="$(agency completions "${word}")"
  fi

  reply=("${(ps:\n:)completions}")
}

alias a="agency"
alias ap="agency portal"
alias ape="agency portal edit"
alias gtfo="agency disconnect && airport on"

# Sharepoint
alias sharepoint="$BROWSER 'http://sharepoint3'"

# Timeforce
alias timeforce="$BROWSER 'http://bend.quantumclub.com/qqest/Login/login.asp'"
alias timeforcepunch="$BROWSER http://bend.quantumclub.com/qqest/time/timeCard.asp && $BROWSER 'http://bend.quantumclub.com/qqest/Time/timePunch.asp?punchtype=clockinout&ActiveEmployeeID=57'"

# Zendesk
alias zendesk="$BROWSER 'https://agencyrevolution.zendesk.com/agent'"
alias knowledgebase="$BROWSER 'https://agencyrevolution.zendesk.com/forums'"

# Common directories
alias portals="cd /Volumes/Resources/clients/Portals"
alias assets="cd /Volumes/Resources/clients/Portals/_assets"
alias skins="cd /Volumes/Resources/clients/Portals/_default/Skins"
alias modules="cd /Volumes/Resources/clients/DesktopModules"
alias qdrive="cd /Volumes/Resources/docs"

# Skins
for skin in susy echoframework; do
  alias $skin="skins && $EDITOR $skin"
done

# Convert Wordpress to SunBlogNuke
alias wpmigrate="mono ~/bin/WPBlogML.exe "<commit_msg>Cleaned up completions/agency.zsh<commit_after>if [[ ! -o interactive ]]; then
    return
fi

compctl -K _agency agency

_agency() {
  local word words completions
  read -cA words
  word="${words[2]}"

  if [ "${#words}" -eq 2 ]; then
    completions="$(agency commands)"
  else
    completions="$(agency completions "${word}")"
  fi

  reply=("${(ps:\n:)completions}")
}

alias ap="agency portal"
alias ape="agency portal edit"

# Sharepoint
alias sharepoint="$BROWSER 'http://sharepoint3'"

# Timeforce
alias timeforce="$BROWSER 'http://bend.quantumclub.com/qqest/Login/login.asp'"
alias timeforcepunch="$BROWSER http://bend.quantumclub.com/qqest/time/timeCard.asp && $BROWSER 'http://bend.quantumclub.com/qqest/Time/timePunch.asp?punchtype=clockinout&ActiveEmployeeID=57'"

# Zendesk
alias zendesk="$BROWSER 'https://agencyrevolution.zendesk.com/agent'"
alias knowledgebase="$BROWSER 'https://agencyrevolution.zendesk.com/forums'"

# DNN directories
alias revportals="cd /Volumes/Resources/production/Portals"
alias devportals="cd /Volumes/Resources/development"

alias revcomponents="cd /Volumes/Resources/production/Resources/Shared/components"

alias revskins="cd /Volumes/Resources/production/Portals/_default/Skins"
alias devskins="cd /Volumes/Resources/development/_default/Skins"

alias revmodules="cd /Volumes/Resources/production/DesktopModules"

# Docs directory
alias revdocs="cd /Volumes/Resources/docs"

# Convert Wordpress to SunBlogNuke
alias wpmigrate="mono ~/bin/WPBlogML.exe "
{'fraction_non_alphanumeric': 0.14654002713704206, 'fraction_numerical': 0.0033921302578018998, 'mean_word_length': 5.582589285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6236470', 'n_tokens_mistral': 1045, 'n_tokens_neox': 974, 'n_words': 195}