zsh / .zshrcon commit [zsh] add alias for mathematica (a1b0138)
   1export ZSH=/home/andrew/.oh-my-zsh
   2export PATH=~/scripts:$PATH
   3export PATH=/home/andrew/.local/bin:$PATH
   4
   5# ---
   6# Keybinds
   7# ---
   8
   9# Ctrl+Bksp deletes preceding word
  10bindkey '^H' backward-delete-word
  11
  12# Ctrl+Del deletes succeeding word
  13bindkey '^[[3^' delete-word
  14
  15# Ctrl+left arrow moves cursor one word left
  16bindkey '^[Od' backward-word
  17
  18# Ctrl+right arrow moves cursor one word right
  19bindkey '^[Oc' forward-word
  20
  21# Custom delimeters for delete-word
  22WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
  23
  24# ---
  25# Behaviour
  26# ---
  27
  28#Allow bash-style comments
  29setopt interactivecomments
  30
  31export EDITOR='vim'
  32
  33# Timestamp in history command ("mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd")
  34HIST_STAMPS="dd.mm.yyyy"
  35
  36DISABLE_UNTRACKED_FILES_DIRTY="true"
  37
  38# plugins can be found in ~/.oh-my-zsh/plugins/*
  39plugins=(git)
  40
  41# ---
  42# Appearance
  43# ---
  44ZSH_THEME="custom"
  45COMPLETION_WAITING_DOTS="true"
  46
  47source $ZSH/oh-my-zsh.sh
  48
  49# fix spotify ui scaling bug
  50alias spotify="spotify --force-device-scale-factor=0.95 %U"
  51
  52# use bat instead of cat
  53alias cat="bat"
  54tac () { /usr/bin/tac $@ | bat }
  55
  56# WolframScript alias
  57alias wolf="wolframscript -code"