Prevent untracked files from being shown in dotfile status
This commit is contained in:
parent
b0b5fb16e7
commit
f927a521cc
15
paoda.zsh
15
paoda.zsh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue