From 37f663c57dc63d6627ae13731e76769b16b910ca Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 15 Sep 2023 14:59:31 -0700 Subject: [PATCH] Removed dots command --- init.zsh | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/init.zsh b/init.zsh index d59232f..11d0be8 100644 --- a/init.zsh +++ b/init.zsh @@ -127,24 +127,6 @@ alias gu="git pull" alias gf="git fetch" alias gt="git status" -# Dotfile management -[ -v ZSH_MANAGE_DOTFILES_REPO ] || ZSH_MANAGE_DOTFILES_REPO="${HOME}/src/dotfiles" -function dots { - local args=("--git-dir=${ZSH_MANAGE_DOTFILES_REPO}" '--work-tree=/' '--bare') - if (( ${#} == 0 )); then - (cd / - for file in $(git ${args} ls-files); do - printf '%s\t%s\t\e[38;2;255;255;0m%s\e[m\n' \ - "$(git ${args} -c color.status=always status -s "${file}" | sed "s#${file}##")" \ - "/${file}" \ - "$(git ${args} log --max-count=1 --format='%s' "${file}")" - done) | column -t -T2 --separator=" " - else - git ${args} "${@}" - fi -} -compdef -e "words[1]=(git '--git-dir=${HOME}/src/dotfiles' --work-tree=/ --bare); service=git; (( CURRENT+=3 )); _git" dots - # Sudo last line with sudo-command-line() { [[ -z $BUFFER ]] && zle up-history