mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-25 14:46: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
|
||||
update ) (cd "$DOTFILES" && git pull) ;;
|
||||
force-update ) (cd "$DOTFILES" && git fetch --all && git reset --hard origin/main && git pull) ;;
|
||||
reset )
|
||||
antigen reset 1> /dev/null
|
||||
rm -rf $HOME/.antigen
|
||||
|
@ -84,7 +85,7 @@ dfs()
|
|||
echo 'Done. Please open a new shell to see the changes.'
|
||||
;;
|
||||
cd ) cd "$DOTFILES" ;;
|
||||
* ) echo "unknown command \"$1\". available: update, reset, cd" ;;
|
||||
* ) echo "unknown command \"$1\". available: update, force-update, reset, cd" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user