# export PATH=$HOME/bin:/usr/local/bin:$PATH

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="edvardm"
plugins=(git zsh-syntax-highlighting)

source $ZSH/oh-my-zsh.sh

set -o vi
alias gac='git add . && git commit'
alias v='nvim'
alias s='ls'
alias c='clear'
alias e='exit'
alias o='xdg-open'
alias cp='cp -r'
alias vc='nvim ~/.config/nvim'
alias vrc='vim ~/.vimrc'
alias vz='nvim ~/.zshrc'
alias sz='source ~/.zshrc'
alias sy='systemctl'
# ~/.zshrc

export MT_EDITOR=nvim
export VISUAL=nvim

export WORKSPACES=$HOME/Documents
f() {
    fff "$@"
    cd "$(cat "${XDG_CACHE_HOME:=${HOME}/.cache}/fff/.fff_d")"
}

bindkey -s "^f" "~/.local/bin/tmuxs\n"


export WORKSPACES=$HOME/.config/waybar:$HOME/.config/alacritty:$HOME/.config/hypr:$HOME/.config/nvim:$WORKSPACES
alias schoolmount='sudo mount 192.168.1.179:/srv/nfs ~/nfs/rpi'
alias d2mount='sudo mount.cifs -o username=junikim,uid=$(id -u),gid=$(id -g) //157.245.86.196/d2nas ~/nfs/d2'
alias mp='ncmpcpp'
alias vh='nvim ~/.config/hypr/hyprland.conf'

export EDITOR=nvim
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/go/bin:$PATH

if [[ "$(command -v nvim)" ]]; then
    export EDITOR='nvim'
    export MANPAGER='nvim +Man!'
    export MANWIDTH=999
fi