Git and Configuration Profile Manager
After installation, initialize the configuration:
persona init
To initialize the configuration:
persona init
This command creates the configuration file ~/.persona.json
if it doesn't exist yet. It also creates the directory ~/.persona/profiles
where all profiles will be stored.
To add a new profile:
persona add --url=<repository-url>
The profile name can be extracted from the URL if not provided. The repository will be cloned into ~/.persona/profiles/<profile-name>
.
To list all available profiles:
persona list
This command shows all available profiles and their current status (active or inactive).
To switch to a different profile:
persona switch --profile=<profile-name>
This command creates symbolic links to the configuration files of the selected profile. If files already exist in the target location, the command will prompt for confirmation before replacing them.
To remove a profile:
persona remove --profile=<profile-name>
This command removes the profile and its symbolic links. It will prompt for confirmation before proceeding.
To update a profile from its repository:
persona update --profile=<profile-name>
To update all profiles:
persona update
This command fetches the latest changes from the repository and updates the local files.
To update Persona to the latest version:
persona self-update
This command downloads and installs the latest version of Persona from GitHub.
The configuration file is located at ~/.persona.json
and contains:
- List of all profiles
- Current active profile
- Profile aliases
- Configuration settings
Each profile is stored in ~/.persona/profiles/<profile-name>
and should contain:
- Configuration files
- Dotfiles
- Any other configuration resources
When switching profiles, Persona creates symbolic links from the profile files to their appropriate locations in your home directory.
Available languages:
- English
- French
- German
The application supports internationalization and can be used in multiple languages.