Remove git hooks

This commit is contained in:
Martin Pander
2023-12-11 14:28:57 +01:00
parent c88a1c6883
commit f2a2c2c214
10 changed files with 26 additions and 134 deletions

View File

@ -1,3 +1,4 @@
#!/bin/bash
source ~/.bashrc
. "$HOME/.cargo/env"

View File

@ -187,3 +187,6 @@ source ~/bin/autocomplete.sh
# alias vims="vim -c \"call feedkeys(':source ~/.vim/obsessions/')\""
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
. "$HOME/.cargo/env"
export OPENAI_API_KEY=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

View File

@ -1,6 +0,0 @@
#!/bin/sh
set -e
PATH="/usr/local/bin:$PATH"
trap "rm -f .git/tags.$$" EXIT
ctags --tag-relative -Rf.git/tags.$$ --exclude=.git --fields=+l
mv .git/tags.$$ .git/tags

View File

@ -1,2 +1 @@
#!/bin/sh
.git/hooks/ctags > /dev/null 2>&1 &

View File

@ -1,3 +1 @@
#!/bin/sh
#git push origin
.git/hooks/ctags > /dev/null 2>&1 &

View File

@ -1,2 +1 @@
#!/bin/sh
.git/hooks/ctags > /dev/null 2>&1 &

View File

@ -42,3 +42,5 @@ export PATH="$HOME/bin:/usr/local/bin:$PATH"
unalias rm
alias open='nautilus . &'
export OPENAI_API_KEY=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

View File

@ -301,12 +301,12 @@ augroup VimIntern
augroup END
" tmux window title
augroup TmuxTitle
autocmd!
au VimEnter * call SaveTmuxWindowName()
au SessionLoadPost * call ChangeTmuxToSessionName()
au VimLeave * call system("tmux rename-window '" . g:tmuxWindowName . "'")
augroup END
" augroup TmuxTitle
" autocmd!
" au VimEnter * call SaveTmuxWindowName()
" au SessionLoadPost * call ChangeTmuxToSessionName()
" au VimLeave * call system("tmux rename-window '" . g:tmuxWindowName . "'")
" augroup END
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" filetype specific
@ -360,21 +360,21 @@ endfunction
" endfunction
" change tmux window name to session
function! ChangeTmuxToSessionName()
let sessionName = v:this_session
if strlen(sessionName)
let session = substitute(sessionName, ".*/", "", "g")
call system("tmux rename-window '" . session . "'")
else
call system("tmux rename-window 'nvim'")
endif
endfunction
" function! ChangeTmuxToSessionName()
" let sessionName = v:this_session
" if strlen(sessionName)
" let session = substitute(sessionName, ".*/", "", "g")
" call system("tmux rename-window '" . session . "'")
" else
" call system("tmux rename-window 'nvim'")
" endif
" endfunction
function! SaveTmuxWindowName()
let g:tmuxWindowName = system("tmux display-message -p '#W'")
let g:tmuxWindowName = substitute(g:tmuxWindowName, '\n\+$', '', '')
call system("tmux rename-window 'nvim'")
endfunction
" function! SaveTmuxWindowName()
" let g:tmuxWindowName = system("tmux display-message -p '#W'")
" let g:tmuxWindowName = substitute(g:tmuxWindowName, '\n\+$', '', '')
" call system("tmux rename-window 'nvim'")
" endfunction
" remove whitespaces
function! TrimWhiteSpace()

View File

@ -1,88 +0,0 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[hidelinks]{hyperref}
\usepackage{todonotes}
\mathtoolsset{showonlyrefs}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Operators
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareMathOperator{\dt}{d}
\DeclareMathOperator{\diverg}{div}
\DeclareMathOperator{\grad}{grad}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\sym}{sym}
\DeclareMathOperator{\skw}{skw}
\DeclareMathOperator{\cov}{Cov}
\DeclareMathOperator{\var}{Var}
\newcommand{\C}{\mathbf{C}}
\newcommand{\E}{\mathbf{E}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\PP}{\mathbb{P}}
\newcommand{\pdN}{\mathcal{N}}
\theoremstyle{plain}
\newtheorem{satz}{Satz}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\vx}{\underline{x}}
\newcommand{\vy}{\underline{y}}
\newcommand{\vz}{\underline{z}}
\newcommand{\vmu}{\underline{\mu}}
\newcommand{\rrx}{\bm{x}}
\newcommand{\rry}{\bm{y}}
\newcommand{\rrz}{\bm{z}}
\newcommand{\rvx}{\bm{\vx}}
\newcommand{\rvy}{\bm{\vy}}
\newcommand{\rvz}{\bm{\vz}}
\newcommand{\evx}{\hat{\vx}}
\newcommand{\evy}{\hat{\vy}}
\newcommand{\evz}{\hat{\vz}}
\renewcommand{\eps}{\ensuremath{\varepsilon}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\vec}[1]{\underline{#1}}
\newcommand{\dx}[1][x]{\,\dt\!#1}
\newcommand{\func}[2]{ #1 ( #2 )}
\newcommand{\funcb}[2]{ #1 [ #2 ]}
\newcommand{\brr}[1]{\left( #1 \right)}
\newcommand{\bre}[1]{\left[ #1 \right]}
\newcommand{\brg}[1]{\left{ #1 \right}}
\newcommand{\bis}[2]{= #1,\ldots\,, #2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\konst}{\textit{konst.}}
\newcommand{\const}{\textit{const.}}
\newcommand{\for}{\text{for }}

View File

@ -1,16 +0,0 @@
#!/bin/bash
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
TEXDIR="$HOME/texmf/tex/latex/local"
for styles in $SCRIPTDIR/*; do
style=${styles##*/}
if [[ $style != "setup" ]]; then
if [[ ! -a "$TEXDIR/$style" ]]; then
ln -s $SCRIPTDIR/$style $TEXDIR/$style
echo $style "symlinked to" $TEXDIR/$style
else
echo "already exists:" $TEXDIR/$style
fi
fi
done