# Plugins
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# Autocomplete (if installed via yay)
source /usr/share/zsh/plugins/zsh-autocomplete/zsh-autocomplete.plugin.zsh

# History
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
setopt HIST_IGNORE_DUPS
setopt SHARE_HISTORY
# Useful options
setopt AUTO_CD
setopt CORRECT

export EDITOR=nvim

# Prompt — handled by Starship
eval "$(starship init zsh)"


function hyprconf() {
  local -A files=(
    main       ~/.config/hypr/hyprland.conf
    binds      ~/.config/hypr/binds.conf
    env        ~/.config/hypr/env.conf
    settings   ~/.config/hypr/settings.conf
    rules      ~/.config/hypr/windowrules.conf
    autostart  ~/.config/hypr/autostart.conf
    monitors   ~/.config/hypr/monitors.conf
    workspaces ~/.config/hypr/workspaces.conf
    hyprlock   ~/.config/hypr/hyprlock.conf
    hyprpaper  ~/.config/hypr/hyprpaper.conf
  )
  local choice=$(printf '%s\n' ${(k)files} | sort | fzf --prompt='hypr config> ')
  [ -n "$choice" ] && nvim "${files[$choice]}"
}
alias fixwifi="sudo bash ~/mt7902_temp/fix_my_wifi.sh"
alias startm="wlogout -l ~/.config/wlogout/layout -s ~/.config/wlogout/style.css -b 4 -T 350 -B 350"
alias zshconf="nvim ~/.zshrc"   # renamed from bashconf
alias barconf="nvim ~/.config/waybar/config.jsonc"
alias ca="cd ~/RiderProjects/ArqaamAccounting/ && clear && claude"
bindkey "^[[1;5C" forward-word   # Ctrl+Right
bindkey "^[[1;5D" backward-word  # Ctrl+Left
alias reload="source ~/.zshrc && hyprctl reload && echo 'Reloaded' "
alias arq="cd ~/RiderProjects/ArqaamAccounting/"
alias ssh="TERM=xterm-256color ssh"
alias mountwin="sudo mount -t ntfs-3g -o ro /dev/nvme0n1p3 /mnt/windows"
# Created by `pipx` on 2026-06-04 11:25:25
export PATH="$PATH:/home/nouredeen/.local/bin"

. "$HOME/.local/share/../bin/env"

# opencode
export PATH=/home/nouredeen/.opencode/bin:$PATH
