1# === Environment Variables ===
2
3# Path
4export PATH="$HOME/.yarn/bin:$HOME/.nvm/versions/node/v12.16.0/bin:$PATH"
5export PATH="$HOME/bin:$PATH"
6export PATH="$HOME/.local/bin:$PATH"
7
8export PYENV_ROOT="$HOME/.pyenv"
9export PATH="$PYENV_ROOT/bin:$PATH"
10
11export PATH="$HOME/go/bin:$PATH"
12
13# eval "$(pyenv init -)"
14
15export NODE_PATH="$HOME/.config/yarn/global/node_modules"
16
17# Path to your oh-my-zsh installation.
18export ZSH="/home/jake/.oh-my-zsh"
19
20export TERM=xterm-256color
21
22# PFetch variables
23export PF_INFO="ascii title os kernel memory uptime pkgs wm"
24
25# Libvirt
26export LIBVIRT_DEFAULT_URI="qemu:///system"
27
28# === ZSH Config ===
29
30ZSH_THEME="avit"
31
32# ZSH Autosuggestions
33ZSH_AUTOSUGGEST_STRATEGY=(history)
34
35# Use UK timestamps in history
36HIST_STAMPS="dd/mm/yyyy"
37
38# Oh-My-ZSH plugins
39plugins=(git adb colored-man-pages colorize command-not-found common-aliases gulp pip sudo yarn virtualenv zsh-autosuggestions taskwarrior wakatime zsh-syntax-highlighting)
40
41source $ZSH/oh-my-zsh.sh
42
43# === Functions and Aliases === 
44
45source /usr/share/doc/pkgfile/command-not-found.zsh
46
47function pygmentize_cat {
48  for arg in "[email protected]"; do
49    pygmentize -O style='base16-eighties' -g "${arg}" 2> /dev/null || /bin/cat "${arg}"
50  done
51}
52command -v pygmentize > /dev/null && alias cat=pygmentize_cat
53
54function scratch {
55  if [ -z "$1" ]
56  then
57    nvim "/home/jake/.scratch"
58  else
59    nvim "/home/jake/.scratch/$1.md"
60  fi
61}
62
63function upload {
64   curl -F "[email protected]$1" https://f.jstanger.dev | xclip -selection c
65 }
66
67
68function dotsync {
69  echo "$1"
70  cp -arlv --parents "$1" ~/.dotfiles
71}
72
73function color {
74  if [ -z "$1" ]
75  then
76    ls "/home/jake/bin/color-scripts"
77  else
78    "/home/jake/bin/color-scripts/$1"
79  fi
80}
81
82alias cat=pygmentize_cat
83
84alias vim=nvim
85alias ls=exa
86alias cat="bat --paging=never"
87alias la="exa -la --git"
88alias dd="dd status=progress"
89alias glow="glow -w 90"
90alias c="code ."
91alias stamp=stampr
92
93[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
94source /usr/share/nvm/init-nvm.sh
95
96source ~/.bitwarden.sh
97
98# begin m365_comp completion
99. <(m365_comp --completion)
100# end m365_comp completion
101