# --------------------------------------------------
# File and Directory Management
# --------------------------------------------------
alias ..="cd .."                          # Go up one directory
alias ...="cd ../.."                      # Go up two directories
alias ....="cd ../../.."                  # Go up three directories
alias back="cd -"                         # Go back to the last directory
alias la="ls -Ah"                         # List all except . and .., human-readable sizes
alias lsd="ls -d */"                      # List only directories
alias lt="ls -ltr"                        # List by modification time, oldest first
alias ls="ls --color=auto"                # Colored output for ls

# --------------------------------------------------
# Package Management (Pacman + Paru)
# --------------------------------------------------
#alias update="paru -Syyu --noconfirm"     # Update system packages
#alias search="paru -Ss"                   # Search in repositories
#alias local="paru -Q"                     # List installed packages
#alias orphan="paru -Qdt"                  # List orphaned packages

# --------------------------------------------------
# Git Shortcuts
# --------------------------------------------------
alias gs="git status"                     # Show git status
alias ga="git add"                        # Stage changes
alias gc="git commit -m"                  # Commit with a message
alias gco="git checkout"                  # Switch branches
alias gp="git pull"                       # Pull changes
alias gpu="git push"                      # Push changes
alias gcl="git clone"                     # Clone repository
alias gd="git diff"                       # Show changes
alias gsh="git show"                      # Show details of a commit
alias gl="git log --oneline --graph --decorate" # Pretty git log

# --------------------------------------------------
# Network Utilities
# --------------------------------------------------
alias myip="curl ifconfig.me"             # Display public IP address
alias netstat="ss -tuln"                  # Show active network connections
alias ping="ping -c 5"                    # Ping with 5 packets
alias hosts="sudo $EDITOR /etc/hosts"     # Edit hosts file

# --------------------------------------------------
# System Monitoring & Management
# --------------------------------------------------
alias dfh="df -h"                         # Disk usage (human-readable)
alias duh="du -h --max-depth=1"           # Folder sizes (human-readable)
alias meminfo="free -m"                   # Memory usage in MB
alias cpuinfo="lscpu"                     # Show CPU information
alias journal="sudo journalctl -p 3 -xb"  # View critical system logs
alias reboot="sudo systemctl reboot"      # Reboot the system
alias shutdown="sudo systemctl poweroff"  # Shutdown the system

# --------------------------------------------------
# Custom Command Enhancements
# --------------------------------------------------
alias bashrc="$EDITOR ~/.bashrc"          # Edit bash configuration
alias zshrc="$EDITOR ~/.zshrc"            # Edit zsh configuration
alias vimrc="$EDITOR ~/.vimrc"            # Edit Vim configuration
alias profile="$EDITOR ~/.profile"        # Edit shell profile
alias reload="source ~/.zshrc"            # Reload zsh configuration
alias cal='cal -3'                        # Calendar (last, current, next month)

# --------------------------------------------------
# Process and Task Management
# --------------------------------------------------
alias psg="ps aux | grep"                 # Search for a process
alias kill9="kill -9"                     # Force kill a process
alias top="htop"                          # Use htop if available
alias watch="watch -n 1"                  # Repeat command every second

# --------------------------------------------------
# Quality of Life Aliases
# --------------------------------------------------
alias cls="clear"                         # Clear terminal screen
alias now="date +'%Y-%m-%d %H:%M:%S'"     # Display current date and time
alias cwd="pwd | xclip -sel clip"         # Copy current directory to clipboard
alias please="sudo"                       # Fun alias for sudo
alias s="sudo"                            # Short sudo

# --------------------------------------------------
# Fun and Whimsical Aliases
# --------------------------------------------------
alias shrug='echo "¯\_(ツ)_/¯"'           # Print shrug emoji
alias lenny='echo "( ͡° ͜ʖ ͡°)"'          # Print lenny face
alias flip="echo '(╯°□°)╯︵ ┻━┻'"         # Print table flip
alias unflip="echo '┬─┬ ノ( ゜-゜ノ)'"    # Print unflip
alias coffee="echo 'Starting coffee brewing process... ☕️'" # Start coffee process

