Remove git hooks
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
|||||||
@ -187,3 +187,6 @@ source ~/bin/autocomplete.sh
|
|||||||
# alias vims="vim -c \"call feedkeys(':source ~/.vim/obsessions/')\""
|
# alias vims="vim -c \"call feedkeys(':source ~/.vim/obsessions/')\""
|
||||||
|
|
||||||
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
export OPENAI_API_KEY=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
|
||||||
|
|||||||
@ -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
|
|
||||||
@ -1,2 +1 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
.git/hooks/ctags > /dev/null 2>&1 &
|
|
||||||
|
|||||||
@ -1,3 +1 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#git push origin
|
|
||||||
.git/hooks/ctags > /dev/null 2>&1 &
|
|
||||||
|
|||||||
@ -1,2 +1 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
.git/hooks/ctags > /dev/null 2>&1 &
|
|
||||||
|
|||||||
@ -42,3 +42,5 @@ export PATH="$HOME/bin:/usr/local/bin:$PATH"
|
|||||||
|
|
||||||
unalias rm
|
unalias rm
|
||||||
alias open='nautilus . &'
|
alias open='nautilus . &'
|
||||||
|
|
||||||
|
export OPENAI_API_KEY=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
|
||||||
|
|||||||
@ -301,12 +301,12 @@ augroup VimIntern
|
|||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" tmux window title
|
" tmux window title
|
||||||
augroup TmuxTitle
|
" augroup TmuxTitle
|
||||||
autocmd!
|
" autocmd!
|
||||||
au VimEnter * call SaveTmuxWindowName()
|
" au VimEnter * call SaveTmuxWindowName()
|
||||||
au SessionLoadPost * call ChangeTmuxToSessionName()
|
" au SessionLoadPost * call ChangeTmuxToSessionName()
|
||||||
au VimLeave * call system("tmux rename-window '" . g:tmuxWindowName . "'")
|
" au VimLeave * call system("tmux rename-window '" . g:tmuxWindowName . "'")
|
||||||
augroup END
|
" augroup END
|
||||||
|
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" filetype specific
|
" filetype specific
|
||||||
@ -360,21 +360,21 @@ endfunction
|
|||||||
" endfunction
|
" endfunction
|
||||||
|
|
||||||
" change tmux window name to session
|
" change tmux window name to session
|
||||||
function! ChangeTmuxToSessionName()
|
" function! ChangeTmuxToSessionName()
|
||||||
let sessionName = v:this_session
|
" let sessionName = v:this_session
|
||||||
if strlen(sessionName)
|
" if strlen(sessionName)
|
||||||
let session = substitute(sessionName, ".*/", "", "g")
|
" let session = substitute(sessionName, ".*/", "", "g")
|
||||||
call system("tmux rename-window '" . session . "'")
|
" call system("tmux rename-window '" . session . "'")
|
||||||
else
|
" else
|
||||||
call system("tmux rename-window 'nvim'")
|
" call system("tmux rename-window 'nvim'")
|
||||||
endif
|
" endif
|
||||||
endfunction
|
" endfunction
|
||||||
|
|
||||||
function! SaveTmuxWindowName()
|
" function! SaveTmuxWindowName()
|
||||||
let g:tmuxWindowName = system("tmux display-message -p '#W'")
|
" let g:tmuxWindowName = system("tmux display-message -p '#W'")
|
||||||
let g:tmuxWindowName = substitute(g:tmuxWindowName, '\n\+$', '', '')
|
" let g:tmuxWindowName = substitute(g:tmuxWindowName, '\n\+$', '', '')
|
||||||
call system("tmux rename-window 'nvim'")
|
" call system("tmux rename-window 'nvim'")
|
||||||
endfunction
|
" endfunction
|
||||||
|
|
||||||
" remove whitespaces
|
" remove whitespaces
|
||||||
function! TrimWhiteSpace()
|
function! TrimWhiteSpace()
|
||||||
|
|||||||
@ -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 }}
|
|
||||||
16
tex/setup
16
tex/setup
@ -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
|
|
||||||
Reference in New Issue
Block a user