# aliaseseses
alias ls='ls --color=auto'
+alias git-pushall='git-pushall ' # for alias chaining
alias dotfiles='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
alias suckless-clean='make clean && rm -rf config.h && git reset --hard home/master'
alias musicdl="youtube-dl -f bestaudio"
alias mpv="mpv --no-input-default-bindings"
-alias slock='slock -m "$(figlet locked xd | cowsay -f cheese -n)"'
+# alias lockscreen='slock -m "$(figlet locked xd | cowsay -f cheese -n)"'
alias darkmpv='mpv --vf=sub,lavfi="negate"'
alias nmaplocal='nmap -sn 192.168.1.0/24'
# example:
opacity-rule = [
"97:class_g = 'St'",
- "97:class_g = 'Zathura'"
+ "97:class_g = 'Zathura'"
];
super + s
st pulsemixer
+super + l
+ st slock -m "$(figlet locked xd | cowsay -f cheese -n)"
+
super + {Down,Left,Right}
mpc {toggle,prev,next}
\prod\limits_{$1}^{$2}$3
endsnippet
+
+snippet defint "Definite Integral" w
+\int_{$1}^{$2} $0
+endsnippet
+
+
# MATH MODES
priority 10
snippet im "inline math" w
\mathrm{cis}($1)
endsnippet
+snippet span "Span" w
+\text{span}($0)
+endsnippet
+
snippet eea "Extended Euclidian Algorithm" w
\begin{center}
--- /dev/null
+
+\documentclass[11pt]{article}
+\textwidth 15cm
+\textheight 24cm
+\evensidemargin 6mm
+\oddsidemargin 6mm
+\topmargin -1.1cm
+\setlength{\parskip}{1.5ex}
+
+\usepackage{amsfonts,amsmath,amssymb,enumerate}
+
+\begin{document}
+\parindent=0pt
+
+\title{TITLE}
+\author{Daniel Liu}
+\date{DATE}
+\maketitle
+
+
+
+\end{document}
set tabstop=4
set shiftwidth=4
set expandtab
-set formatoptions-=cro "disables auto comments
+" set formatoptions-=cro "disables auto comments (not working rn)
" spell check
setlocal spell
" let g:netrw_winsize = 25
" let g:netrw_browse_split = 4
+" Templates
+augroup templates
+ autocmd BufNewFile *.tex 0r ~/.vim/templates/skeleton.tex
+augroup END
+
" vim plug
" this blob auto installs vim plug if it isnt already
if empty(glob('~/.vim/autoload/plug.vim'))
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
+" template stuff
call plug#begin('~/.vim/plugged')
Plug 'sirver/ultisnips'
" Lf
" let g:lf_replace_netrw = 1 " weird behavior rn
+
+" Run after plugins
+autocmd FileType * set formatoptions-=o
#!/bin/sh
-# reads the config file and pushes to all the remotes
+# you can pass in git parameters to this script too
+# e.g
+# git-pushall git --git-dir=$HOME/.dotfiles --work-tree=$HOME
-config_path="$(git rev-parse --show-toplevel)/.git/config" 2>/dev/null
+cmd="$@"
+[ -z "$cmd" ] && cmd="git"
+config_path="$($cmd config --local -l)" 2>/dev/null
[ ! "$?" = 0 ] && echo "Failed: not a git repo." && exit 1
-[ -z "$1" ] && echo "Failed: Please supply a branch to push to." && exit 1
-# look for all remotes
-cat "$config_path" | sed '/^\[remote "/!d; s/^\[remote "//; s/"]$//' |\
- xargs -I _ git push _ "$1"
+echo "$config_path" | grep '^remote.*.url=' |\
+ sed 's/^remote.*.url=//' |\
+ xargs printf "$cmd push %s master\n" |\
+