1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 11:31:30 +01:00

zsh: add dvc aliases

This commit is contained in:
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 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}'" 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 # dotfiles user aliases
if [[ -f ~/.dotfiles_aliases ]]; then if [[ -f ~/.dotfiles_aliases ]]; then
source $HOME/.dotfiles_aliases source $HOME/.dotfiles_aliases

View File

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