From f2a2c2c21472d3e81a0c94fbfc0d07ffe5c4ed7c Mon Sep 17 00:00:00 2001 From: Martin Pander Date: Mon, 11 Dec 2023 14:28:57 +0100 Subject: [PATCH] Remove git hooks --- config/bash_profile | 1 + config/bashrc | 3 + config/git_template/hooks/ctags | 6 -- config/git_template/hooks/post-checkout | 1 - config/git_template/hooks/post-commit | 2 - config/git_template/hooks/post-merge | 1 - config/zshrc | 2 + nvim/init.vim | 40 +++++------ tex/defaultTex.sty | 88 ------------------------- tex/setup | 16 ----- 10 files changed, 26 insertions(+), 134 deletions(-) delete mode 100755 config/git_template/hooks/ctags delete mode 100755 tex/defaultTex.sty delete mode 100755 tex/setup diff --git a/config/bash_profile b/config/bash_profile index 88484a8..c2fcef3 100644 --- a/config/bash_profile +++ b/config/bash_profile @@ -1,3 +1,4 @@ #!/bin/bash source ~/.bashrc +. "$HOME/.cargo/env" diff --git a/config/bashrc b/config/bashrc index bf83ec3..2159206 100644 --- a/config/bashrc +++ b/config/bashrc @@ -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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 diff --git a/config/git_template/hooks/ctags b/config/git_template/hooks/ctags deleted file mode 100755 index 0588ae9..0000000 --- a/config/git_template/hooks/ctags +++ /dev/null @@ -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 diff --git a/config/git_template/hooks/post-checkout b/config/git_template/hooks/post-checkout index 193a0ad..1a24852 100755 --- a/config/git_template/hooks/post-checkout +++ b/config/git_template/hooks/post-checkout @@ -1,2 +1 @@ #!/bin/sh -.git/hooks/ctags > /dev/null 2>&1 & diff --git a/config/git_template/hooks/post-commit b/config/git_template/hooks/post-commit index 40152e8..1a24852 100755 --- a/config/git_template/hooks/post-commit +++ b/config/git_template/hooks/post-commit @@ -1,3 +1 @@ #!/bin/sh -#git push origin -.git/hooks/ctags > /dev/null 2>&1 & diff --git a/config/git_template/hooks/post-merge b/config/git_template/hooks/post-merge index 193a0ad..1a24852 100755 --- a/config/git_template/hooks/post-merge +++ b/config/git_template/hooks/post-merge @@ -1,2 +1 @@ #!/bin/sh -.git/hooks/ctags > /dev/null 2>&1 & diff --git a/config/zshrc b/config/zshrc index f2647aa..a53a368 100644 --- a/config/zshrc +++ b/config/zshrc @@ -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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 diff --git a/nvim/init.vim b/nvim/init.vim index c9f7466..fd021bf 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -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() diff --git a/tex/defaultTex.sty b/tex/defaultTex.sty deleted file mode 100755 index 02a004a..0000000 --- a/tex/defaultTex.sty +++ /dev/null @@ -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 }} diff --git a/tex/setup b/tex/setup deleted file mode 100755 index 8e88298..0000000 --- a/tex/setup +++ /dev/null @@ -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