dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 45763417a71ce77f949b9c22b3a5b69c5645355a
parent be06e4014181b963b54d0a26b46636f55e087743
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 17 May 2019 20:23:21 -0400

Update snippets, change two scripts to POSIX sh

Diffstat:
M.vim/UltiSnips/tex.snippets | 12++++++------
M.vim/ftplugin/tex.vim | 3++-
Mbin/gitlab-ci | 7+++----
Mbin/julia-fast | 3+--
4 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/.vim/UltiSnips/tex.snippets b/.vim/UltiSnips/tex.snippets @@ -101,12 +101,12 @@ snippet article "Blank article template" %\captionnamefont{\bfseries\footnotesize} %\captiontitlefont{\footnotesize} -\captionnamefont{\bfseries} -\captiontitlefont{} +%\captionnamefont{\bfseries} +%\captiontitlefont{} %\captionstyle{} -\captiondelim{. } -\changecaptionwidth -\captionwidth{0.8\linewidth} +%\captiondelim{. } +%\changecaptionwidth{} +%\captionwidth{0.8\linewidth} %\usepackage[rightcaption]{sidecap} @@ -182,7 +182,7 @@ $0 %\newpage %\addcontentsline{toc}{part}{Bibliography} %\bibliography{/Users/ad/articles/own/BIBnew.bib} -\printbibliography +\printbibliography{} \end{document} endsnippet diff --git a/.vim/ftplugin/tex.vim b/.vim/ftplugin/tex.vim @@ -19,7 +19,8 @@ augroup latex_options setlocal makeprg=latexmk\ -lualatex\ % " or automake in tmux window: - nnoremap <leader>p :!tmux new-window -a -n "latexmk" "latexmk -pdf -pvc -f %" \; select-window -l<cr><cr>:echo "Autocompiling in new tmux window"<cr> + nnoremap <leader>p :!tmux new-window -a -n "latexmk" "latexmk -pdf -pv -f %" \; select-window -l<cr><cr>:echo "Compiling once in new tmux window"<cr> + nnoremap <leader>P :!tmux new-window -a -n "latexmk" "latexmk -pdf -pvc -f %" \; select-window -l<cr><cr>:echo "Autocompiling in new tmux window"<cr> " disable continuous and slow chktex linting let g:ale_lint_on_text_changed = 'never' diff --git a/bin/gitlab-ci b/bin/gitlab-ci @@ -1,6 +1,6 @@ -#!/usr/bin/env bash +#!/bin/sh -function help { +help() { echo "Usage: ${0##*/} JOBNAME1 [JOBNAME2,...,[JOBNAME N]]" } @@ -17,7 +17,7 @@ case "$1" in *) if [ "$(uname)" = "Linux" ]; then # Run as sudo if not SU already - if [ $EUID != 0 ]; then + if ! [ "$(id -u)" = 0 ]; then sudo "$0" "$@" exit $? fi @@ -25,7 +25,6 @@ case "$1" in ;; esac - for jobname in "$@"; do gitlab-runner exec docker "$jobname" done diff --git a/bin/julia-fast b/bin/julia-fast @@ -1,3 +1,2 @@ -#!/bin/bash -#julia --procs auto --optimize=3 --math-mode=fast $@ +#!/bin/sh julia --procs 1 --optimize=3 --math-mode=fast $@