mkhomedir
mksourcedir

# test that chezmoi remove file removes a file
exists $HOME/.file
chezmoi remove --force $HOME${/}.file
! exists $HOME/.file

# test that chezmoi remove dir removes a directory
exists $HOME/.dir
chezmoi remove --force $HOME${/}.dir
! exists $HOME/.dir

# test that if any chezmoi remove stops on any error
exists $HOME/.executable
! chezmoi remove --force $HOME${/}.newfile $HOME${/}.executable
stderr 'not in source state'
exists $HOME/.executable
