From b0a14b76161f277e3d69b5191dea3e05857bdf57 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 6 Dec 2016 21:07:05 +0100 Subject: zsh --- zsh/.zshrc | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index b9b4055..5083153 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -42,7 +42,7 @@ export PATH=~/.local/lib/ruby/bin:$PATH export GEM_HOME=$HOME/.local/lib/ruby/ export GEM_PATH=$HOME/.local/lib/ruby/:$GEM_PATH -export PYTHONPATH=$PYTHONPATH:~/lib/python/site-packages +export PYTHONPATH=$PYTHONPATH:~/.local/lib/python/site-packages:~/.local/lib/python3/site-packages export PATH=~/.local/lib/python/site-packages:$PATH export PATH=~/.local/lib/node/bin:$PATH @@ -183,25 +183,23 @@ alias equery='sudo equery -N' alias feh='feh -F' alias git='git -c color.status=always' alias grep='grep --color=auto' -alias pdf='mupdf' +alias pdf='zathura' alias py='bpython' alias vi=$EDITOR alias jsonlint='python -mjson.tool' +alias jpegtran='jpegtran -trim' -alias mergepdf='texexec --pdfarrange --noduplex --result merged.pdf ' -alias mergepdfgs=' gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=gsmerged.pdf -dBATCH' -alias pdfprevfile='pdftoppm -f 1 -l 1 -singlefile -jpeg' +alias pdfmerge='gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=/tmp/merged.pdf -dBATCH' alias thumb='convert -resize 200x200' alias qmv='qmv -evim -fdo' alias radio='mocp ~/.moc/radio.m3u' alias wifi_list='sudo iwlist wlan0 scan' -alias kill_wifi='sudo /etc/init.d/dhcpcd stop; sudo killall wpa_supplicant' alias always_on='xset dpms 0 0 0' alias vgaoff='xrandr --output VGA1 --off && xrandr --output LVDS1 --mode 1024x768' -alias vgaclone='xrandr --output VGA1 --mode 1280x720' +alias vgaclone='xrandr --output VGA1 --mode 1024x768' alias vgaext='xrandr --output VGA1 --mode 1024x768 --left-of LVDS1 --rotate right' alias vga21='xrandr --output VGA1 --mode 1600x1200 --rate 60 --rotate right && xrandr --output LVDS1 --off' alias vga22w='xrandr --output VGA1 --mode 1680x1050 --rate 60 --rotate left && xrandr --output LVDS1 --off' @@ -219,9 +217,9 @@ alias muxl='tmux list-sessions' alias muxa='tmux attach -t' alias easy_install_home='easy_install --install-dir=$HOME/.local/lib/python/site-packages' -alias pip_home='install --install-option="--install-purelib=~/.local/lib/python/site-packages"' +alias pip_home='pip3 install --install-option="--install-purelib=~/.local/lib/python/site-packages"' alias npm_install_home='npm install -g --prefix ~/.local/lib/node' -alias castnow_home='castnow --myip 192.168.0.105 --address 192.168.0.5' +alias castnow_home='castnow --myip 192.168.0.100 --address 192.168.0.4' alias my_ip='echo "$(curl 'https://api.ipify.org' 2>/dev/null)"' @@ -260,3 +258,13 @@ tln () reply=( $(tmux list-sessions | cut -d: -f1) ) } +watch_pdflatex () +{ + ls $@ | entr pdflatex --interaction=batchmode $1.tex +} + +pdfprevfile () +{ + pdftoppm $1 -f 1 -l 1 -singlefile -png +} + -- cgit v1.2.3