More aliases
This commit is contained in:
parent
87e982704c
commit
6fb77a634d
12
dot_zshrc
12
dot_zshrc
@ -29,6 +29,14 @@ function ls {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Dotfiles management
|
||||||
|
function .add {
|
||||||
|
chezmoi add $1
|
||||||
|
chezmoi git diff
|
||||||
|
if $(read -q "?Commit changes? [y/N]"); then
|
||||||
|
chezmoi git commit -- -am $2
|
||||||
|
fi
|
||||||
|
}
|
||||||
function .re-add {
|
function .re-add {
|
||||||
chezmoi re-add
|
chezmoi re-add
|
||||||
chezmoi git diff
|
chezmoi git diff
|
||||||
@ -36,6 +44,10 @@ function .re-add {
|
|||||||
chezmoi git commit -- -am $1
|
chezmoi git commit -- -am $1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
alias .push="chezmoi git push"
|
||||||
|
alias .pull="chezmoi git pull"
|
||||||
|
alias .status="chezmoi git status"
|
||||||
|
alias .update="chezmoi update"
|
||||||
|
|
||||||
|
|
||||||
# Helpful tool: https://zsh-prompt-generator.site/
|
# Helpful tool: https://zsh-prompt-generator.site/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user