zsh: add dvc aliases

feature/improve-speed
bretello 2021-10-03 11:18:18 +02:00
parent 97b49b34c8
commit 8e760f3e3e
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
2 changed files with 10 additions and 0 deletions

View File

@ -85,6 +85,12 @@ alias venv='source .venv/bin/activate'
alias pf="fzf --preview='BAT_STYLE='header,changes' bat --color=always {}' --bind shift-up:preview-page-up,shift-down:preview-page-down"
alias fgitlog="git log --oneline | fzf --multi --preview 'git -p show --color=always {+1}'"
# dvc
alias dst='dvc status'
alias dstc='dvc status --cloud'
alias drp='dvc repro'
alias drps='dvc repro -s'
# dotfiles user aliases
if [[ -f ~/.dotfiles_aliases ]]; then
source $HOME/.dotfiles_aliases

View File

@ -27,6 +27,10 @@ elif [[ "$(command -v apt)" ]]; then
antibody bundle robbyrussell/oh-my-zsh path:plugins/debian
fi
if [[ "$(command -v dvc )" ]]; then
eval `dvc completion --shell zsh`
fi
# Setup oh-my-zsh path
export ZSH="$(antibody path robbyrussell/oh-my-zsh)"