# some handy ls aliases
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# some handy grep aliases
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

export PATH="$PATH:/opt/nvim-linux-x86_64/bin"

alias open="xdg-open"
alias nv="nvim"
alias rmd="rndrmarkdown"

autoload -Uz compinit && compinit
zstyle ':completion:*' insert-tab false
zstyle ':completion:*' menu select

bindkey "^[[1;5C" forward-word   # Ctrl+Right
bindkey "^[[1;5D" backward-word  # Ctrl+Left

export NVM_LAZY_LOAD=true
source "$HOME/.nvm-zsh/zsh-nvm.plugin.zsh"

eval "$(starship init zsh)"

