Simplify git configs and undo template
This commit is contained in:
parent
6dd9328adc
commit
648edd2341
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
#ft=bash
|
||||
if [[ ${BASH_VERSION} != "3.2*" ]]; then
|
||||
shopt -s autocd
|
||||
fi
|
||||
@ -10,3 +8,5 @@ shopt -s histappend
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# vim: ft=bash
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
{{ if and .hellotech (lookPath "git") -}}
|
||||
[url "git@github.com:HelloTech"]
|
||||
insteadOf = https://github.com/HelloTech
|
||||
email = buddy@hellotech.com
|
||||
[init]
|
||||
templateDir = ~/.config/git/template
|
||||
{{- end }}
|
||||
@ -1,6 +0,0 @@
|
||||
{{ if lookPath "git" -}}
|
||||
[url "ssh://git@git.buddy.wtf:2022"]
|
||||
insteadOf = https://git.buddy.wtf
|
||||
[url "ssh://git@git.xbudex.com:2022"]
|
||||
insteadOf = https://git.xbudex.com
|
||||
{{- end }}
|
||||
@ -1,18 +1,21 @@
|
||||
{{ if lookPath "git" -}}
|
||||
[core]
|
||||
editor = vim
|
||||
excludesfile = ~/.config/git/ignore
|
||||
excludesfile = {{ .chezmoi.homeDir }}/.config/git/ignore
|
||||
quotepath = false
|
||||
commitGraph = true
|
||||
|
||||
[color]
|
||||
branch = auto
|
||||
diff = auto
|
||||
interactive = auto
|
||||
status = auto
|
||||
ui = auto
|
||||
|
||||
[user]
|
||||
name = Buddy Sandidge
|
||||
email = git@buddy.wtf
|
||||
|
||||
[alias]
|
||||
br = branch
|
||||
ci = commit
|
||||
@ -32,8 +35,6 @@
|
||||
p = !git fetch --all
|
||||
sup = submodule update
|
||||
com = "!bash -c 'if [[ $(git rev-parse --verify main 2>/dev/null) ]] ; then git checkout main ; else git checkout master ; fi'"
|
||||
cod = checkout develop
|
||||
pod = push origin develop
|
||||
file = show --pretty="format:" --name-only
|
||||
glog = !git log --pretty=oneline | grep
|
||||
dpull = !git svn fetch && git svn rebase
|
||||
@ -49,18 +50,38 @@
|
||||
ll = long-list
|
||||
list-date-stap = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
|
||||
lds = list-date-stap
|
||||
|
||||
[push]
|
||||
default = simple
|
||||
[include]
|
||||
path = ~/.config/git/config-git.buddy.wtf
|
||||
path = ~/.config/git/config-git.xbudex.com
|
||||
path = ~/.config/git/config-hellotech
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[receive]
|
||||
advertisePushOptions = true
|
||||
|
||||
[gc]
|
||||
writeCommitGraph = true
|
||||
|
||||
[fetch]
|
||||
prune = true
|
||||
|
||||
[url "ssh://git@git.buddy.wtf"]
|
||||
insteadOf = https://git.buddy.wtf
|
||||
|
||||
[url "ssh://git@git.xbudex.com:2022"]
|
||||
insteadOf = https://git.xbudex.com
|
||||
|
||||
{{ if .hellotech -}}
|
||||
[url "git@github.com:HelloTech"]
|
||||
insteadOf = https://github.com/HelloTech
|
||||
email = buddy@hellotech.com
|
||||
|
||||
{{ if lookPath "node" -}}
|
||||
[init]
|
||||
templateDir = {{ .chezmoi.homeDir }}/.config/git/template
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
# vim: filetype=gitconfig
|
||||
{{- end }}
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
{{ if lookPath "go" -}}
|
||||
set noexpandtab
|
||||
|
||||
{{ if lookPath "goimports" -}}
|
||||
" use goimports for formatting
|
||||
let g:go_fmt_command = "goimports"
|
||||
{{- end }}
|
||||
|
||||
" turn highlighting on
|
||||
let g:go_highlight_functions = 1
|
||||
@ -14,4 +16,6 @@ let g:go_highlight_build_constraints = 1
|
||||
" Open go doc in vertical window, horizontal, or tab
|
||||
nnoremap <leader>d :GoDef<CR>
|
||||
nnoremap <leader>t :GoDefType<CR>
|
||||
|
||||
" vim: filetype=vim
|
||||
{{- end }}
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
"Plug 'neoclide/coc.nvim', { 'branch': 'release' }
|
||||
|
||||
Plug 'SirVer/ultisnips', { 'tag': '3.2' }
|
||||
let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user