From f927a521ccdf071022b83542036da813fac70fba Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 27 Jul 2020 12:45:28 -0500 Subject: [PATCH] Prevent untracked files from being shown in dotfile status --- paoda.zsh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/paoda.zsh b/paoda.zsh index 15f39b5..576b67b 100644 --- a/paoda.zsh +++ b/paoda.zsh @@ -1,3 +1,4 @@ +#!/usr/bin/zsh # Make ZSH behave like vim bindkey -v @@ -10,7 +11,19 @@ alias ls="exa" alias ll="exa -albh" alias cat="bat" 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