mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-25 19:36:55 +08:00
dfs force-update
This commit is contained in:
parent
8a78837664
commit
4b89c82672
3
.zshrc2
3
.zshrc2
|
@ -75,6 +75,7 @@ dfs()
|
||||||
{
|
{
|
||||||
case $1 in
|
case $1 in
|
||||||
update ) (cd "$DOTFILES" && git pull) ;;
|
update ) (cd "$DOTFILES" && git pull) ;;
|
||||||
|
force-update ) (cd "$DOTFILES" && git fetch --all && git reset --hard origin/main && git pull) ;;
|
||||||
reset )
|
reset )
|
||||||
antigen reset 1> /dev/null
|
antigen reset 1> /dev/null
|
||||||
rm -rf $HOME/.antigen
|
rm -rf $HOME/.antigen
|
||||||
|
@ -84,7 +85,7 @@ dfs()
|
||||||
echo 'Done. Please open a new shell to see the changes.'
|
echo 'Done. Please open a new shell to see the changes.'
|
||||||
;;
|
;;
|
||||||
cd ) cd "$DOTFILES" ;;
|
cd ) cd "$DOTFILES" ;;
|
||||||
* ) echo "unknown command \"$1\". available: update, reset, cd" ;;
|
* ) echo "unknown command \"$1\". available: update, force-update, reset, cd" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user