|
|
@ -60,17 +60,17 @@ alias dot-git-cmd="git --git-dir=$HOME/.dotfiles --work-tree=$HOME" |
|
|
|
# Manage dotfiles repo |
|
|
|
# Usage: dotgit [commands...] |
|
|
|
dotgit () { |
|
|
|
if [[ $1 == "-d" || $1 == "--diff" ]]; then |
|
|
|
if [[ "$1" == "-d" || "$1" == "--diff" ]]; then |
|
|
|
dot-git-cmd diff |
|
|
|
elif [[ $1 == "-u" || $1 == "--update" ]]; then |
|
|
|
dot-git-cmd add $HOME |
|
|
|
dot-git-cmd commit -m date |
|
|
|
elif [[ $1 == "-p" || $1 == "--push" ]]; then |
|
|
|
elif [[ "$1" == "-u" || "$1" == "--update" ]]; then |
|
|
|
dot-git-cmd add $HOME |
|
|
|
dot-git-cmd commit -m "$(date)" |
|
|
|
elif [[ "$1" == "-p" || "$1" == "--push" ]]; then |
|
|
|
dot-git-cmd add "$HOME" |
|
|
|
dot-git-cmd commit -m date |
|
|
|
dot-git-cmd push |
|
|
|
else |
|
|
|
dot-git-cmd $1 |
|
|
|
dot-git-cmd "$1" |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|