This commit is contained in:
Timo Schmidt 2023-03-27 01:00:26 +02:00
parent 33e23e355d
commit 646a7ddf2b
2 changed files with 7 additions and 4 deletions

View File

@ -8,7 +8,8 @@ alias git='EDITOR=vim git'
alias cmatrix='cmatrix -cu3 -Cred'
alias gca='git add * && git commit -m *'
alias watch='watch -cn.1'
alias norm='alacritty -e sh -c '\''git rev-parse --show-toplevel || { echo "Exiting in 5"; sleep 1; echo "Exiting in 4"; sleep 1; echo "Exiting in 3"; sleep 1; echo "Exiting in 2"; sleep 1; echo "Exiting in 1"; sleep 1; } && cd "$(git rev-parse --show-toplevel)" && watch -cn.5 norminette -R CheckForbiddenSourceHeader'\'' &'
alias push='git push origin master; git push gitea master'
alias norm='alacritty -e sh -c '\''git rev-parse --show-toplevel || { echo "Exiting in 5"; sleep 1; echo "Exiting in 4"; sleep 1; echo "Exiting in 3"; sleep 1; echo "Exiting in 2"; sleep 1; echo "Exiting in 1"; sleep 1; } && cd "$(git rev-parse --show-toplevel)" && watch -cn.5 date \&\& norminette -R CheckForbiddenSourceHeader'\'' & disown'
jmp () {
cd "$(find . -name "${1}" -print -quit)"
if [ "${?}" = "0" ]; then

8
.vimrc
View File

@ -17,14 +17,16 @@ set showcmd
set noswapfile
set hlsearch
set ruler
filetype plugin on
filetype indent on
" set autoread
set autoread
set so=7
set paste
" set paste
" Ignore case when searching
set ignorecase
@ -79,4 +81,4 @@ autocmd BufReadPost *
let @w='gg^/START cc/* ////Go*/ ////<C-o>'
let @q='gg^/\/\/\/\/ cc#define STARTndd<C-o>'
let @c='G:Stdheader o #define START #include <stdio.h> int main(void) { }O return (0);k'
let @c='G:Stdheader o #define START #include <stdio.h> int main(void) { }O return (0);k'