Simplify git configs and undo template

main
Buddy Sandidge 2 years ago
parent 6dd9328adc
commit 648edd2341

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#ft=bash
if [[ ${BASH_VERSION} != "3.2*" ]]; then if [[ ${BASH_VERSION} != "3.2*" ]]; then
shopt -s autocd shopt -s autocd
fi fi
@ -10,3 +8,5 @@ shopt -s histappend
# check the window size after each command and, if necessary, # check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS. # update the values of LINES and COLUMNS.
shopt -s checkwinsize 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" -}} {{ if lookPath "git" -}}
[core] [core]
editor = vim editor = vim
excludesfile = ~/.config/git/ignore excludesfile = {{ .chezmoi.homeDir }}/.config/git/ignore
quotepath = false quotepath = false
commitGraph = true commitGraph = true
[color] [color]
branch = auto branch = auto
diff = auto diff = auto
interactive = auto interactive = auto
status = auto status = auto
ui = auto ui = auto
[user] [user]
name = Buddy Sandidge name = Buddy Sandidge
email = git@buddy.wtf email = git@buddy.wtf
[alias] [alias]
br = branch br = branch
ci = commit ci = commit
@ -32,8 +35,6 @@
p = !git fetch --all p = !git fetch --all
sup = submodule update sup = submodule update
com = "!bash -c 'if [[ $(git rev-parse --verify main 2>/dev/null) ]] ; then git checkout main ; else git checkout master ; fi'" 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 file = show --pretty="format:" --name-only
glog = !git log --pretty=oneline | grep glog = !git log --pretty=oneline | grep
dpull = !git svn fetch && git svn rebase dpull = !git svn fetch && git svn rebase
@ -49,18 +50,38 @@
ll = long-list ll = long-list
list-date-stap = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short list-date-stap = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
lds = list-date-stap lds = list-date-stap
[push] [push]
default = simple default = simple
[include]
path = ~/.config/git/config-git.buddy.wtf
path = ~/.config/git/config-git.xbudex.com
path = ~/.config/git/config-hellotech
[init] [init]
defaultBranch = main defaultBranch = main
[receive] [receive]
advertisePushOptions = true advertisePushOptions = true
[gc] [gc]
writeCommitGraph = true writeCommitGraph = true
[fetch] [fetch]
prune = true 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 }} {{- end }}

@ -1,8 +1,10 @@
{{ if lookPath "go" -}} {{ if lookPath "go" -}}
set noexpandtab set noexpandtab
{{ if lookPath "goimports" -}}
" use goimports for formatting " use goimports for formatting
let g:go_fmt_command = "goimports" let g:go_fmt_command = "goimports"
{{- end }}
" turn highlighting on " turn highlighting on
let g:go_highlight_functions = 1 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 " Open go doc in vertical window, horizontal, or tab
nnoremap <leader>d :GoDef<CR> nnoremap <leader>d :GoDef<CR>
nnoremap <leader>t :GoDefType<CR> nnoremap <leader>t :GoDefType<CR>
" vim: filetype=vim
{{- end }} {{- end }}

@ -1,5 +1,3 @@
"Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'SirVer/ultisnips', { 'tag': '3.2' } Plug 'SirVer/ultisnips', { 'tag': '3.2' }
let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ] let g:UltiSnipsSnippetDirectories = [ 'UltiSnips', 'snips' ]

Loading…
Cancel
Save