Add gitconfig

This commit is contained in:
Loïc Gremaud 2021-11-19 15:05:30 +01:00
parent ec9841c173
commit 9725599feb
Signed by: Legrems
GPG Key ID: E81E8B180465D116
6 changed files with 52 additions and 2 deletions

View File

@ -10,7 +10,7 @@
dir=~/Documents/dotfiles # dotfiles directory dir=~/Documents/dotfiles # dotfiles directory
olddir=~/dotfiles_old # old dotfiles backup directory olddir=~/dotfiles_old # old dotfiles backup directory
files="vim vimrc zsh zshrc tmux.conf zpreztorc" # list of files/folders to symlink in homedir files="vim vimrc zsh zshrc tmux.conf zpreztorc gitconfig gitignore_global" # list of files/folders to symlink in homedir
########## ##########
# create dotfiles_old in homedir # create dotfiles_old in homedir

40
gitconfig Normal file
View File

@ -0,0 +1,40 @@
[user]
email = loic.gremaud@arcanite.ch
name = Loïc Gremaud
signingkey = 8B2741BF148B1059065A71EEE81E8B180465D116 ;540
;signingkey = BAE2CD06F0A3753A0F8D0A21D4620E6DF3E0121D ;539
;signingkey = 4F78275C96E34F56920CF7B5CACB2A128E557EFD ;W
token = REPLACE HERE TOKEN
[commit]
gpgSign = true
[gpg]
program = gpg2
[tag]
forceSignAnnotated = false
[diff]
tool = vimdiff
[difftool]
prompt = false
[alias]
d = difftool
adog = log --all --decorate --oneline --graph
dog = log --decorate --oneline --graph
[core]
editor = nvim
excludesfile = /home/legrems/.gitignore_global
[push]
default = current
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[delta]
plus-style = "syntax #012800"
minus-style = "syntax #340001"
syntax-theme = Monokai Extended
navigate = true
side-by-side = true
[interactive]
diffFilter = delta --color-only

2
gitignore_global Normal file
View File

@ -0,0 +1,2 @@
.autoenv.zsh
.autoenv_leave.zsh

1
vim/vim Symbolic link
View File

@ -0,0 +1 @@
/home/legrems/Documents/dotfiles/vim

2
vimrc
View File

@ -436,7 +436,7 @@ set modifiable
nnoremap <leader>ct :set cursorline!<CR> nnoremap <leader>ct :set cursorline!<CR>
" Folding " Folding
set foldnestmax=2 set foldnestmax=10
set foldmethod=indent set foldmethod=indent
set nofoldenable set nofoldenable

View File

@ -3,6 +3,13 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi fi
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
trap "kill $SSH_AGENT_PID" 0
fi
# >>> conda initialize >>> # >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !! # !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/legrems/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" __conda_setup="$('/home/legrems/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"