This project is designed to automatically create shell aliases for installed Flatpak applications, simplifying command-line usage and enhancing productivity.
To use this project, follow these steps:
- Clone the repository:
git clone https://github.com/MrLoLf/AliasFlatpak.git - Navigate to the project directory:
cd AliasFlatpak - Ensure Python 3.10 or higher is installed on your system.
To use this project, follow these steps:
- Run the script to generate aliases for all installed flatpak apps:
python main.py - To generate an alias for a specific app, use the
--addor-aflag followed by the app name. For example, to add an alias for Spotify:python main.py --add spotify - To remove an alias for a specific app, use the
--removeor-rflag followed by the alias name. For example, to remove an alias for Spotify:python main.py --remove spotify - To list all current aliases possible, use the
--listor-lflag:python main.py --list - Restart your terminal or source your shell configuration file (e.g.,
source ~/.bashrc) to apply the changes.
Examples:
# Generate aliases for all installed flatpak apps
python main.py --add all
# Generate an alias for a specific app (Spotify in this case)
python main.py --add spotify
# Remove an alias for a specific app (Spotify in this case)
python main.py --remove spotify
# List all current aliases possible from the flatpak list
python main.py --listGenerating aliases for flatpak apps... Done! Please restart your Terminal.
To create a systemctl Service, follow these steps:
- Run
add_service.sh - That's it
Contributions are welcome! Here's how you can contribute to this project:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature - Make your changes and commit them:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/your-feature - Submit a pull request.