mksourcedir

exists $CHEZMOISOURCEDIR/dot_file
chezmoi chattr empty $HOME${/}.file
! exists $CHEZMOISOURCEDIR/dot_file
exists $CHEZMOISOURCEDIR/empty_dot_file

chezmoi chattr +p $HOME${/}.file
! exists $CHEZMOISOURCEDIR/empty_dot_file
exists $CHEZMOISOURCEDIR/private_empty_dot_file

chezmoi chattr t,-e $HOME${/}.file
! exists $CHEZMOISOURCEDIR/private_empty_dot_file
exists $CHEZMOISOURCEDIR/private_dot_file.tmpl

exists $CHEZMOISOURCEDIR/executable_dot_executable
chezmoi chattr nox $HOME${/}.executable
! exists $CHEZMOISOURCEDIR/executable_dot_executable
exists $CHEZMOISOURCEDIR/dot_executable

chezmoi chattr x $HOME${/}.executable
! exists $CHEZMOISOURCEDIR/dot_executable
exists $CHEZMOISOURCEDIR/executable_dot_executable

chezmoi chattr +private $HOME${/}.create
! exists $CHEZMOISOURCEDIR/create_dot_create
exists $CHEZMOISOURCEDIR/create_private_dot_create

chezmoi chattr noprivate $HOME${/}.create
! exists $CHEZMOISOURCEDIR/create_private_dot_create
exists $CHEZMOISOURCEDIR/create_dot_create

exists $CHEZMOISOURCEDIR/dot_dir
chezmoi chattr exact $HOME/.dir
! exists $CHEZMOISOURCEDIR/dot_dir
exists $CHEZMOISOURCEDIR/exact_dot_dir

exists $CHEZMOISOURCEDIR/symlink_dot_symlink
chezmoi chattr +t $HOME${/}.symlink
! exists $CHEZMOISOURCEDIR/symlink_dot_symlink
exists $CHEZMOISOURCEDIR/symlink_dot_symlink.tmpl

chezmoi chattr -- -t $HOME${/}.symlink
! exists $CHEZMOISOURCEDIR/symlink_dot_symlink.tmpl
exists $CHEZMOISOURCEDIR/symlink_dot_symlink

chezmoi chattr -- before $HOME/script
! exists $CHEZMOISOURCEDIR/run_script
exists $CHEZMOISOURCEDIR/run_before_script

chezmoi chattr -- once $HOME/script
! exists $CHEZMOISOURCEDIR/run_before_script
exists $CHEZMOISOURCEDIR/run_once_before_script

chezmoi chattr -- after $HOME/script
! exists $CHEZMOISOURCEDIR/run_once_before_script
exists $CHEZMOISOURCEDIR/run_once_after_script

chezmoi chattr -- -o $HOME/script
! exists $CHEZMOISOURCEDIR/run_once_after_script
exists $CHEZMOISOURCEDIR/run_after_script

chezmoi chattr -- -a $HOME/script
! exists $CHEZMOISOURCEDIR/run_after_script
exists $CHEZMOISOURCEDIR/run_script

-- home/user/.local/share/chezmoi/run_script --
#!/bin/sh
