2024-11-17 01:54:39 +03:30
|
|
|
# Parch Linux Zsh Configuration
|
|
|
|
|
|
|
|
A comprehensive Zsh configuration package for Parch Linux, featuring productivity-enhancing aliases and fun interactive functions.
|
|
|
|
|
|
|
|
## 🌟 Features
|
|
|
|
|
|
|
|
### Included Aliases
|
|
|
|
- **File Management**: Smart shortcuts for navigating and managing files
|
|
|
|
- **Package Management**: Streamlined pacman and paru commands
|
|
|
|
- **Git Operations**: Quick git command shortcuts
|
|
|
|
- **Network Utilities**: Easy network management and monitoring
|
|
|
|
- **System Management**: System monitoring and maintenance shortcuts
|
|
|
|
- **Quality of Life**: Various utility commands for better productivity
|
|
|
|
|
|
|
|
### Interactive Functions
|
|
|
|
- `typewriter.zsh`: Text animation effect
|
|
|
|
- `weather.zsh`: Terminal-based weather information
|
|
|
|
- `fireworks.zsh`: ASCII fireworks animation
|
|
|
|
- `coin.zsh`: Coin flip simulator
|
|
|
|
- `dice.zsh`: Dice rolling simulator
|
|
|
|
- `extract.zsh`: Universal archive extractor
|
|
|
|
- `genpass.zsh`: Password generator
|
|
|
|
|
|
|
|
## 📁 Project Structure
|
2024-11-16 21:01:44 +00:00
|
|
|
```
|
2024-11-17 01:54:39 +03:30
|
|
|
.
|
|
|
|
├── build.sh # Build script
|
|
|
|
├── parch.install # Installation hooks
|
|
|
|
├── PKGBUILD # Package build instructions
|
|
|
|
├── README.md # This file
|
|
|
|
└── rootfs # Root filesystem structure
|
|
|
|
└── usr
|
|
|
|
└── share
|
|
|
|
└── parchlinux
|
|
|
|
└── zsh
|
|
|
|
├── alias
|
|
|
|
│ └── alias # Alias definitions
|
|
|
|
├── functions # Interactive functions
|
|
|
|
│ ├── coin.zsh
|
|
|
|
│ ├── dice.zsh
|
|
|
|
│ ├── extract.zsh
|
|
|
|
│ ├── fireworks.zsh
|
|
|
|
│ ├── genpass.zsh
|
|
|
|
│ ├── typewriter.zsh
|
|
|
|
│ └── weather.zsh
|
|
|
|
├── install.txt # Installation instructions
|
|
|
|
└── zshrc-example # Example Zsh configuration
|
2024-11-16 21:01:44 +00:00
|
|
|
```
|
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 🚀 Installation
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
### Via Package Manager
|
|
|
|
```bash
|
|
|
|
sudo pacman -S parch-zsh-config
|
|
|
|
```
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
### Manual Installation
|
|
|
|
1. Clone the repository:
|
|
|
|
```bash
|
|
|
|
git clone https://git.parchlinux.com/config/parch-zsh-config
|
|
|
|
```
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
2. Build and install:
|
|
|
|
```bash
|
|
|
|
cd parch-zsh-config
|
|
|
|
./build.sh
|
|
|
|
sudo pacman -U parch-zsh-config-*.pkg.tar.zst
|
|
|
|
```
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 🛠️ Configuration
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
1. Copy the example configuration:
|
|
|
|
```bash
|
|
|
|
cp /usr/share/parchlinux/zsh/zshrc-example ~/.zshrc
|
|
|
|
```
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
2. Source the configuration:
|
|
|
|
```bash
|
|
|
|
source ~/.zshrc
|
|
|
|
```
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 📖 Usage
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
### Common Aliases
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
#### File Management
|
|
|
|
- `del`: Safely move files to trash
|
|
|
|
- `..`, `...`, `....`: Navigate up directories
|
|
|
|
- `back`: Return to previous directory
|
|
|
|
- `la`: List all files with details
|
|
|
|
- `lsd`: List only directories
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
#### Package Management
|
|
|
|
- `update`: Update system packages
|
|
|
|
- `search`: Search packages
|
|
|
|
- `cleanup`: Remove orphaned packages and clean cache
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
#### Git Operations
|
|
|
|
- `gs`: Git status
|
|
|
|
- `ga`: Git add
|
|
|
|
- `gc`: Git commit
|
|
|
|
- `gp`: Git pull
|
|
|
|
- `gpu`: Git push
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
#### System Management
|
|
|
|
- `dfh`: Disk usage in human-readable format
|
|
|
|
- `meminfo`: Memory information
|
|
|
|
- `cpuinfo`: CPU information
|
|
|
|
- `journal`: View system logs
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
### Interactive Functions
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
- `typewriter "text"`: Display text with typewriter effect
|
|
|
|
- `weather [city]`: Show weather information
|
|
|
|
- `fireworks`: Display ASCII fireworks
|
|
|
|
- `roll`: Roll dice
|
|
|
|
- `flip`: Flip a coin
|
|
|
|
- `genpass [length]`: Generate secure password
|
|
|
|
- `extract <file>`: Extract any archive format
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 🤝 Contributing
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
1. Fork the repository
|
|
|
|
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
|
|
|
|
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
|
|
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
|
|
5. Open a Pull Request
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 📄 License
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
This project is licensed under the GPL-3 License - see the LICENSE file for details.
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 🙏 Acknowledgments
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
- Parch Linux Team
|
|
|
|
- Zsh Community
|
|
|
|
- All contributors who have helped shape this configuration
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 🐛 Bug Reports
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
Please report bugs and issues on the Gitlab issues page.
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
## 📞 Contact
|
2024-11-16 21:01:44 +00:00
|
|
|
|
2024-11-17 01:54:39 +03:30
|
|
|
- Website: https://parchlinux.com
|
|
|
|
- Gitlab: https://git.parchlinux.com/config/parch-zsh-config
|