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