raw download copy
# === Environment Variables ===

# Path
export PATH="$HOME/.yarn/bin:$HOME/.nvm/versions/node/v12.16.0/bin:$PATH"
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"

export PATH="$HOME/go/bin:$PATH"

# eval "$(pyenv init -)"

export NODE_PATH="$HOME/.config/yarn/global/node_modules"

# Path to your oh-my-zsh installation.
export ZSH="/home/jake/.oh-my-zsh"

export TERM=xterm-256color

# PFetch variables
export PF_INFO="ascii title os kernel memory uptime pkgs wm"

# Libvirt
export LIBVIRT_DEFAULT_URI="qemu:///system"

# === ZSH Config ===

ZSH_THEME="avit"

# ZSH Autosuggestions
ZSH_AUTOSUGGEST_STRATEGY=(history)

# Use UK timestamps in history
HIST_STAMPS="dd/mm/yyyy"

# Oh-My-ZSH plugins
plugins=(git adb colored-man-pages colorize command-not-found common-aliases gulp pip sudo yarn virtualenv zsh-autosuggestions taskwarrior wakatime zsh-syntax-highlighting)

source $ZSH/oh-my-zsh.sh

# === Functions and Aliases === 

source /usr/share/doc/pkgfile/command-not-found.zsh

function pygmentize_cat {
  for arg in "[email protected]"; do
    pygmentize -O style='base16-eighties' -g "${arg}" 2> /dev/null || /bin/cat "${arg}"
  done
}
command -v pygmentize > /dev/null && alias cat=pygmentize_cat

function scratch {
  if [ -z "$1" ]
  then
    nvim "/home/jake/.scratch"
  else
    nvim "/home/jake/.scratch/$1.md"
  fi
}

function upload {
   curl -F "[email protected]$1" https://f.jstanger.dev | xclip -selection c
 }


function dotsync {
  echo "$1"
  cp -arlv --parents "$1" ~/.dotfiles
}

function color {
  if [ -z "$1" ]
  then
    ls "/home/jake/bin/color-scripts"
  else
    "/home/jake/bin/color-scripts/$1"
  fi
}

alias cat=pygmentize_cat

alias vim=nvim
alias ls=exa
alias cat="bat --paging=never"
alias la="exa -la --git"
alias dd="dd status=progress"
alias glow="glow -w 90"
alias c="code ."
alias stamp=stampr

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
source /usr/share/nvm/init-nvm.sh

source ~/.bitwarden.sh

# begin m365_comp completion
. <(m365_comp --completion)
# end m365_comp completion