Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/its-ashu-otf/myzsh
My Custom zsh profile - Highly customized Starship Theme with a lot of useful aliases
https://github.com/its-ashu-otf/myzsh
myzsh zsh zsh-configuration zsh-theme zshrc
Last synced: about 1 month ago
JSON representation
My Custom zsh profile - Highly customized Starship Theme with a lot of useful aliases
- Host: GitHub
- URL: https://github.com/its-ashu-otf/myzsh
- Owner: its-ashu-otf
- Created: 2024-05-18T16:12:40.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-23T06:24:59.000Z (about 1 month ago)
- Last Synced: 2024-12-23T06:32:45.396Z (about 1 month ago)
- Topics: myzsh, zsh, zsh-configuration, zsh-theme, zshrc
- Language: Shell
- Homepage:
- Size: 468 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## myZSH
The .zshrc file is a script that runs every time a new terminal session is started in Unix-like operating systems. It is used to configure the shell session, set up aliases, define functions, and more, making the terminal easier to use and more powerful. Below is a summary of the key sections and functionalities defined in the provided .zshrc file.
## Installation
```zsh
curl -fsSL https://raw.githubusercontent.com/its-ashu-otf/myZSH/main/setup.sh | bash
```
![render1734625237861](https://github.com/user-attachments/assets/a661b896-7260-44a1-8c37-72f63c57409e)# Features
#### Enhancements and Utilities
- **Configuration Editors**: Functions to edit important configuration files directly, e.g., `apacheconfig()` for Apache server configurations
- **Color and Formatting**: Enhancements for command output readability using colors and formatting for tools like `ls`, `grep`, and `man`.
- **Navigation Shortcuts**: Aliases to simplify directory navigation, e.g., `alias ..='cd ..'` to go up one directory.
- **Safety Features**: Aliases for safer file operations, like using trash instead of `rm` for deleting files, to prevent accidental data loss.
- **Extensive Zoxide support**: Easily navigate with `z`, `zi`, or pressing Ctrl+f to launch zi to see frequently used navigation directories.
- **Terminal C/P**: PB Copy and paste using xsel for terminal copy and pasting.
- **TMUX**: Integrated my personal tmux config.#### Aliases and Functions
- **Aliases**: Shortcuts for common commands are set up to enhance productivity. For example, `alias cp='cp -i'` makes the `cp` command interactive, asking for confirmation before overwriting files.
- **Functions**: Custom functions for complex operations like `extract()` for extracting various archive types, and `cpp()` for copying files with a progress bar.#### Prompt Customization and History Management
- **Prompt Command**: The `PROMPT_COMMAND` variable is set to automatically save the command history after each command.
- **History Control**: Settings to manage the size of the history file and how duplicates are handled.#### System-Specific Aliases and Settings
- **Editor Settings**: Sets `nano` as the default editor.
- **Conditional Aliases**: Depending on the system type (like Fedora), it sets specific aliases, e.g., replacing `cat` with `bat`.#### Advanced Functions
- **System Information**: Functions to display system information like distribution() to identify the Linux distribution.
- **Networking Utilities**: Tools to check internal and external IP addresses.
- **Resource Monitoring**: Commands to monitor system resources like disk usage and open ports.
# ConclusionThis .zshrc file is a comprehensive setup that not only enhances the shell experience with useful aliases and functions but also provides system-specific configurations and safety features to cater to different user needs and system types. It is designed to make the terminal more user-friendly, efficient, and powerful for an average user.