Prevent untracked files from being shown in dotfile status

This commit is contained in:
Rekai Musuka 2020-07-27 12:45:28 -05:00
parent b0b5fb16e7
commit f927a521cc
1 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#!/usr/bin/zsh
# Make ZSH behave like vim # Make ZSH behave like vim
bindkey -v bindkey -v
@ -10,7 +11,19 @@ alias ls="exa"
alias ll="exa -albh" alias ll="exa -albh"
alias cat="bat" alias cat="bat"
alias vim="nvim" alias vim="nvim"
alias dotfile='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Functions
dotfile() {
if [[ "$1" = "status" ]]; then
git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" status -uno;
else
git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" "$@";
fi
}
# alias dotfile='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME '
### Environment Variable Exports ### Environment Variable Exports