From 01204fff758637398ce3a9d2b6ca20038016e45b Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 6 Mar 2023 11:12:20 -0500 Subject: Rearrange for better usage with GNU stow --- .config/nvim/coc-settings.json | 89 ----------------- .config/nvim/coc.vim | 128 ------------------------- .config/nvim/fzf.vim | 5 - .config/nvim/init.vim | 6 -- .config/nvim/plugins.vim | 23 ----- .gitconfig | 28 ------ .global_ignore | 1 - .mpv/config | 6 -- .msmtprc | 22 ----- .mutt/aliases | 3 - .mutt/colors.muttrc | 100 -------------------- .mutt/mailcap | 84 ---------------- .mutt/muttrc | 184 ------------------------------------ .tmux.conf | 6 -- .vimrc | 13 --- .wgetpaste.conf | 1 - .zshrc | 68 ------------- git/.gitconfig | 28 ++++++ git/.global_ignore | 1 + git/projects/gentoo/.gitconfig | 12 +++ mpv/.mpv/config | 6 ++ msmtp/.msmtprc | 22 +++++ mutt/.mutt/aliases | 3 + mutt/.mutt/colors.muttrc | 100 ++++++++++++++++++++ mutt/.mutt/mailcap | 84 ++++++++++++++++ mutt/.mutt/muttrc | 184 ++++++++++++++++++++++++++++++++++++ nvim/.config/nvim/coc-settings.json | 89 +++++++++++++++++ nvim/.config/nvim/coc.vim | 128 +++++++++++++++++++++++++ nvim/.config/nvim/fzf.vim | 5 + nvim/.config/nvim/init.vim | 6 ++ nvim/.config/nvim/plugins.vim | 23 +++++ nvim/.vimrc | 13 +++ projects/gentoo/.gitconfig | 12 --- tmux/.tmux.conf | 6 ++ wgetpaste/.wgetpaste.conf | 1 + zsh/.zshrc | 68 +++++++++++++ 36 files changed, 779 insertions(+), 779 deletions(-) delete mode 100644 .config/nvim/coc-settings.json delete mode 100644 .config/nvim/coc.vim delete mode 100644 .config/nvim/fzf.vim delete mode 100644 .config/nvim/init.vim delete mode 100644 .config/nvim/plugins.vim delete mode 100644 .gitconfig delete mode 100644 .global_ignore delete mode 100644 .mpv/config delete mode 100644 .msmtprc delete mode 100644 .mutt/aliases delete mode 100644 .mutt/colors.muttrc delete mode 100644 .mutt/mailcap delete mode 100644 .mutt/muttrc delete mode 100644 .tmux.conf delete mode 100644 .vimrc delete mode 100644 .wgetpaste.conf delete mode 100644 .zshrc create mode 100644 git/.gitconfig create mode 100644 git/.global_ignore create mode 100644 git/projects/gentoo/.gitconfig create mode 100644 mpv/.mpv/config create mode 100644 msmtp/.msmtprc create mode 100644 mutt/.mutt/aliases create mode 100644 mutt/.mutt/colors.muttrc create mode 100644 mutt/.mutt/mailcap create mode 100644 mutt/.mutt/muttrc create mode 100644 nvim/.config/nvim/coc-settings.json create mode 100644 nvim/.config/nvim/coc.vim create mode 100644 nvim/.config/nvim/fzf.vim create mode 100644 nvim/.config/nvim/init.vim create mode 100644 nvim/.config/nvim/plugins.vim create mode 100644 nvim/.vimrc delete mode 100644 projects/gentoo/.gitconfig create mode 100644 tmux/.tmux.conf create mode 100644 wgetpaste/.wgetpaste.conf create mode 100644 zsh/.zshrc diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json deleted file mode 100644 index 18223ed..0000000 --- a/.config/nvim/coc-settings.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "python.linting.pylintEnabled": true, - "python.linting.flake8Enabled": false, - "python.linting.enabled": true, - "python.pythonPath": "/usr/bin/python", - - "languageserver": { - "ccls": { - "command": "ccls", - "filetypes": ["c", "cpp", "cuda", "objc", "objcpp"], - "rootPatterns": [".ccls-root", ".git/"], - "initializationOptions": { - "highlight": { - "lsRanges": true - }, - "cache": { - "directory": ".ccls-cache" - } - } - }, - "python": { - "command": "python", - "args": [ - "-mpylsp", - "-vv", - "--log-file", - "/tmp/lsp_python.log" - ], - "trace.server": "verbose", - "filetypes": [ - "python" - ], - "settings": { - "pyls": { - "enable": true, - "trace": { - "server": "verbose" - }, - "commandPath": "", - "configurationSources": [ - "pycodestyle" - ], - "plugins": { - "jedi_completion": { - "enabled": true - }, - "jedi_hover": { - "enabled": true - }, - "jedi_references": { - "enabled": true - }, - "jedi_signature_help": { - "enabled": true - }, - "jedi_symbols": { - "enabled": true, - "all_scopes": true - }, - "mccabe": { - "enabled": true, - "threshold": 15 - }, - "preload": { - "enabled": true - }, - "pycodestyle": { - "enabled": true - }, - "pydocstyle": { - "enabled": false, - "match": "(?!test_).*\\.py", - "matchDir": "[^\\.].*" - }, - "pyflakes": { - "enabled": true - }, - "rope_completion": { - "enabled": true - }, - "yapf": { - "enabled": true - } - } - } - } - } - } -} diff --git a/.config/nvim/coc.vim b/.config/nvim/coc.vim deleted file mode 100644 index da06334..0000000 --- a/.config/nvim/coc.vim +++ /dev/null @@ -1,128 +0,0 @@ -" if hidden is not set, TextEdit might fail. -set hidden - -" Some servers have issues with backup files, see #649 -set nobackup -set nowritebackup - -" Better display for messages -set cmdheight=2 - -" You will have bad experience for diagnostic messages when it's default 4000. -set updatetime=300 - -" don't give |ins-completion-menu| messages. -set shortmess+=c - -" always show signcolumns -set signcolumn=yes - -" Use tab for trigger completion with characters ahead and navigate. -" Use command ':verbose imap ' to make sure tab is not mapped by other plugin. -inoremap - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : - \ coc#refresh() -inoremap pumvisible() ? "\" : "\" - -function! s:check_back_space() abort - let col = col('.') - 1 - return !col || getline('.')[col - 1] =~# '\s' -endfunction - -" Use to trigger completion. -inoremap coc#refresh() - -" Use to confirm completion, `u` means break undo chain at current position. -" Coc only does snippet and additional edit on confirm. -inoremap pumvisible() ? "\" : "\u\" -" Or use `complete_info` if your vim support it, like: -" inoremap complete_info()["selected"] != "-1" ? "\" : "\u\" - -" Use `[g` and `]g` to navigate diagnostics -nmap [g (coc-diagnostic-prev) -nmap ]g (coc-diagnostic-next) - -" Remap keys for gotos -nmap gd (coc-definition) -nmap gy (coc-type-definition) -nmap gi (coc-implementation) -nmap gr (coc-references) - -" Use K to show documentation in preview window -nnoremap K :call show_documentation() - -function! s:show_documentation() - if (index(['vim','help'], &filetype) >= 0) - execute 'h '.expand('') - else - call CocAction('doHover') - endif -endfunction - -" Highlight symbol under cursor on CursorHold -autocmd CursorHold * silent call CocActionAsync('highlight') - -" Remap for rename current word -nmap rn (coc-rename) - -" Remap for format selected region -xmap f (coc-format-selected) -nmap f (coc-format-selected) - -augroup mygroup - autocmd! - " Setup formatexpr specified filetype(s). - autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') - " Update signature help on jump placeholder - autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') -augroup end - -" Remap for do codeAction of selected region, ex: `aap` for current paragraph -xmap a (coc-codeaction-selected) -nmap a (coc-codeaction-selected) - -" Remap for do codeAction of current line -nmap ac (coc-codeaction) -" Fix autofix problem of current line -nmap qf (coc-fix-current) - -" Create mappings for function text object, requires document symbols feature of languageserver. -xmap if (coc-funcobj-i) -xmap af (coc-funcobj-a) -omap if (coc-funcobj-i) -omap af (coc-funcobj-a) - -" Use for select selections ranges, needs server support, like: coc-tsserver, coc-python -nmap (coc-range-select) -xmap (coc-range-select) - -" Use `:Format` to format current buffer -command! -nargs=0 Format :call CocAction('format') - -" Use `:Fold` to fold current buffer -command! -nargs=? Fold :call CocAction('fold', ) - -" use `:OR` for organize import of current buffer -command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') - -" Add status line support, for integration with other plugin, checkout `:h coc-status` -set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} - -" Using CocList -" Show all diagnostics -nnoremap a :CocList diagnostics -" Manage extensions -nnoremap e :CocList extensions -" Show commands -nnoremap c :CocList commands -" Find symbol of current document -nnoremap o :CocList outline -" Search workspace symbols -nnoremap s :CocList -I symbols -" Do default action for next item. -nnoremap j :CocNext -" Do default action for previous item. -nnoremap k :CocPrev -" Resume latest coc list -nnoremap p :CocListResume diff --git a/.config/nvim/fzf.vim b/.config/nvim/fzf.vim deleted file mode 100644 index cef3936..0000000 --- a/.config/nvim/fzf.vim +++ /dev/null @@ -1,5 +0,0 @@ -map b :Buffers - -nnoremap gr :Rg -nnoremap gg :GFiles -nnoremap gf :Files diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim deleted file mode 100644 index 91e3378..0000000 --- a/.config/nvim/init.vim +++ /dev/null @@ -1,6 +0,0 @@ -set runtimepath^=~/.vim runtimepath+=~/.vim/after -let &packpath = &runtimepath -source ~/.vimrc -source ~/.config/nvim/coc.vim -source ~/.config/nvim/fzf.vim -source ~/.config/nvim/plugins.vim diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim deleted file mode 100644 index b485d9b..0000000 --- a/.config/nvim/plugins.vim +++ /dev/null @@ -1,23 +0,0 @@ -call plug#begin() -Plug 'airblade/vim-rooter' -Plug 'bogado/file-line' -Plug 'editorconfig/editorconfig-vim' -Plug 'google/vim-searchindex' -Plug 'igankevich/mesonic' -Plug 'jackguo380/vim-lsp-cxx-highlight' -Plug 'jamessan/vim-gnupg' -Plug 'javier-lopez/sprunge.vim' -Plug 'junegunn/fzf.vim' -Plug 'neoclide/coc.nvim', {'branch': 'release'} -Plug 'preservim/nerdcommenter' -Plug 'preservim/nerdtree' -Plug 'saltstack/salt-vim' -Plug 'sheerun/vim-polyglot' -Plug 'tmsvg/pear-tree' -Plug 'tpope/vim-eunuch' -Plug 'tpope/vim-fugitive' -Plug 'tpope/vim-surround' -Plug 'vim-scripts/AnsiEsc.vim' -Plug 'vim-scripts/git_patch_tags.vim' -Plug 'Yggdroot/indentLine' -call plug#end() diff --git a/.gitconfig b/.gitconfig deleted file mode 100644 index c35f941..0000000 --- a/.gitconfig +++ /dev/null @@ -1,28 +0,0 @@ -[user] - email = mattst88@gmail.com - name = Matt Turner - signingkey = 0xACEB29740C9A4E97 -[includeIf "gitdir:~/projects/gentoo/"] - path = ~/projects/gentoo/.gitconfig -[color] - ui = auto -[rebase] - autosquash = true -[core] - excludesfile = /home/mattst88/.global_ignore - autocrlf = false - filemode = false - pager = less -+F -[diff] - renames = true -[push] - default = simple -[alias] - fixes = show -s --pretty='format:Fixes: %h (\"%s\")' - co = checkout - br = branch - shwo = show - grpe = grep - lgo = log -[init] - defaultBranch = main diff --git a/.global_ignore b/.global_ignore deleted file mode 100644 index 6e92f57..0000000 --- a/.global_ignore +++ /dev/null @@ -1 +0,0 @@ -tags diff --git a/.mpv/config b/.mpv/config deleted file mode 100644 index 1e00302..0000000 --- a/.mpv/config +++ /dev/null @@ -1,6 +0,0 @@ -vo=gpu -hwdec=vaapi -ao=pulse - -demuxer-readahead-secs=30 -cache=yes diff --git a/.msmtprc b/.msmtprc deleted file mode 100644 index 7b050b3..0000000 --- a/.msmtprc +++ /dev/null @@ -1,22 +0,0 @@ -defaults -tls on -tls_trust_file /etc/ssl/certs/ca-certificates.crt -logfile ~/.msmtp.log - -account gmail -host smtp.gmail.com -port 587 -from mattst88@gmail.com -auth on -user mattst88 -passwordeval "gpg --quiet --for-your-eyes-only --no-tty -d ~/.password-store/email/msmtp-mattst88@gmail.com.gpg" - -account gentoo -host smtp.gentoo.org -port 587 -from mattst88@gentoo.org -auth on -user mattst88 -passwordeval "gpg --quiet --for-your-eyes-only --no-tty -d ~/.password-store/email/mattst88@gentoo.org.gpg" - -account default : gmail diff --git a/.mutt/aliases b/.mutt/aliases deleted file mode 100644 index 6074ce0..0000000 --- a/.mutt/aliases +++ /dev/null @@ -1,3 +0,0 @@ -alias gentoo-dev gentoo-dev@lists.gentoo.org -alias gentoo-dev-announce gentoo-dev-announce@lists.gentoo.org -alias gentoo-project gentoo-project@lists.gentoo.org diff --git a/.mutt/colors.muttrc b/.mutt/colors.muttrc deleted file mode 100644 index c7e5679..0000000 --- a/.mutt/colors.muttrc +++ /dev/null @@ -1,100 +0,0 @@ -# vim: filetype=muttrc - -# basic colors --------------------------------------------------------- - -color normal white default -color error brightred default -#color tilde color235 default -#color message brightblack default -#color markers red color254 -#color attachment color254 default -color search brightwhite default -color status brightwhite blue -color indicator black brightgreen -color tree brightblue default - -# basic monocolor screen -mono bold bold -mono underline underline -mono indicator reverse -mono error bold - -# index ---------------------------------------------------------------- - -##color index red default "~D(!~p|~p)" # deleted -##color index color235 default ~F # flagged -##color index color166 default ~= # duplicate messages -##color index color240 default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest -##color index J_base default "~A~N!~T!~p!~Q!~F!~D" # the rest, new -#color index red default "~A" # all messages -#color index color166 default "~E" # expired messages -color index white default "~N" # new messages -#color index white default "~O" # old messages -#color index color61 default "~Q" # messages that have been replied to -color index default default "~R" # read messages -color index white default "~U" # unread messages -#color index white default "~U~$" # unread, unreferenced messages -#color index brightblack default "~v" # messages part of a collapsed thread -#color index brightblack default "~P" # messages from me -#color index color37 default "~p!~F" # messages to me -#color index color37 default "~N~p!~F" # new messages to me -#color index color37 default "~U~p!~F" # unread messages to me -#color index color240 default "~R~p!~F" # messages to me -#color index red default "~F" # flagged messages -#color index red default "~F~p" # flagged messages to me -#color index red default "~N~F" # new flagged messages -#color index red default "~N~F~p" # new flagged messages to me -#color index red default "~U~F~p" # new flagged messages to me -color index brightblack red "~D" # deleted messages -color index default default "~v~(!~N)" # collapsed thread with no unread -color index brightwhite default "~v~(~N)" # collapsed thread with some unread -## statusbg used to indicated flagged when foreground color shows other status -## for collapsed thread -#color index red color235 "~v~(~F)!~N" # collapsed thread with flagged, no unread -#color index color136 color235 "~v~(~F~N)" # collapsed thread with some unread & flagged -#color index color64 color235 "~N~v~(~F~N)" # collapsed thread with unread parent & flagged -#color index color64 color235 "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged -#color index color37 color235 "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly -color index brightblack red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) -##color index color136 default "~(~N)" # messages in threads with some unread -##color index color64 default "~S" # superseded messages -##color index red default "~T" # tagged messages -##color index color166 red "~=" # duplicated messages -# -# message headers ------------------------------------------------------ - -color header brightwhite default "^(From|Subject):" - -# body ----------------------------------------------------------------- - -color quoted default default -#color quoted1 color37 default -#color quoted2 color136 default -#color quoted3 red default -#color quoted4 color166 default -# -#color signature color240 default -#color bold color235 default -#color underline color235 default -#color normal color244 default - -## PGP - -color body brightblack default "^gpg: " -color body brightgreen default "^gpg: Good signature .*" -color body brightwhite red "^gpg: BAD signature from.*" -mono body bold "^gpg: Good signature" -mono body bold "^gpg: BAD signature from.*" - -## Patches -#color body green default "^\+.*" -#color body red default "^-.*" -#color body yellow default "^@@@.*" -color body brightwhite default "^>?diff \-.*" -color body brightwhite default "^>?index [a-f0-9].*" -color body brightwhite default "^>?\-\-\- .*" -color body brightwhite default "^>?[\+]{3} .*" -color body green default "^>?[\+][^\+]+.*" -color body green default "^>?[\+]$" -color body red default "^>?\-[^\-]+.*" -color body cyan default "^>?@@ .*" diff --git a/.mutt/mailcap b/.mutt/mailcap deleted file mode 100644 index 637f214..0000000 --- a/.mutt/mailcap +++ /dev/null @@ -1,84 +0,0 @@ -text/calendar; vcalendar %s; copiousoutput; - -# Plain text -text/plain; vim %s - -#text/html; w3m -I %{charset} -dump %s; nametemplate=%s.html; copiousoutput -text/html; lynx -dump -width=78 %s | sed 's/^ //'; copiousoutput; needsterminal; nametemplate=%s.html - -image/jpg; eog %s -image/jpeg; eog %s -image/pjpeg; eog %s -image/png; eog %s -image/gif; eog %s - -application/pdf; evince %s - -application/pgp-encrypted; gpg --decrypt; copiousoutput - -# LibreOffice stuff -application/vnd.oasis.opendocument.database; libreoffice --nologo --base '%s'; edit=libreoffice --nologo --base '%s'; test=test -n "$DISPLAY"; description="OpenDocument Database"; nametemplate=%s.odb -application/vnd.oasis.opendocument.chart; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Chart"; nametemplate=%s.odc -application/vnd.oasis.opendocument.spreadsheet; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Spreadsheet"; nametemplate=%s.ods -application/vnd.oasis.opendocument.spreadsheet-template; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Spreadsheet Template"; nametemplate=%s.ots -application/vnd.oasis.opendocument.graphics; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenDocument Drawing"; nametemplate=%s.odg -application/vnd.oasis.opendocument.graphics-template; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenDocument Drawing Template"; nametemplate=%s.otg -application/vnd.oasis.opendocument.presentation; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenDocument Presentation"; nametemplate=%s.odp -application/vnd.oasis.opendocument.presentation-template; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenDocument Presentation Template"; nametemplate=%s.otp -application/vnd.oasis.opendocument.formula; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="OpenDocument Formula"; nametemplate=%s.odf -application/vnd.oasis.opendocument.text; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt -application/vnd.oasis.opendocument.text-master; libreoffice --nologo -global '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Master Document"; nametemplate=%s.odm -application/vnd.oasis.opendocument.text-template; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document Template"; nametemplate=%s.ott -application/vnd.oasis.opendocument.text-web; libreoffice --nologo -web '%s'; edit=libreoffice --nologo -web '%s'; test=test -n "$DISPLAY"; description="OpenDocument HTML Document Template"; nametemplate=%s.oth -application/vnd.sun.xml.base; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Database"; nametemplate=%s.sdb -application/vnd.sun.xml.calc; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Spreadsheet"; nametemplate=%s.sxc -application/vnd.sun.xml.calc.template; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Spreadsheet Template"; nametemplate=%s.stc -application/vnd.sun.xml.draw; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Drawing"; nametemplate=%s.sxd -application/vnd.sun.xml.draw.template; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Drawing Template"; nametemplate=%s.std -application/vnd.stardivision.calc; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="StarCalc 5.0"; nametemplate=%s.sdc -application/vnd.stardivision.chart; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="StarChart 5.0"; nametemplate=%s.sds -application/vnd.stardivision.draw; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="StarDraw 5.0"; nametemplate=%s.sda -application/vnd.stardivision.impress; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="StarImpress 5.0"; nametemplate=%s.sdd -application/vnd.stardivision.math; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="StarMath 5.0"; nametemplate=%s.sdf -application/vnd.stardivision.writer-global; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="StarWriter 5.0 Master Document"; nametemplate=%s.sgl -application/vnd.stardivision.writer; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="StarWriter 5.0"; nametemplate=%s.sdw -application/vnd.sun.xml.impress; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Presentation"; nametemplate=%s.sxi -application/vnd.sun.xml.impress.template; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Presentation Template"; nametemplate=%s.sti -application/vnd.sun.xml.math; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Formula"; nametemplate=%s.sxm -application/vnd.sun.xml.writer; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Text Document"; nametemplate=%s.sxw -application/vnd.sun.xml.writer.global; libreoffice --nologo -global '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Master Document"; nametemplate=%s.sxg -application/vnd.sun.xml.writer.template; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Text Document Template"; nametemplate=%s.stw -text/csv; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="CSV Document"; nametemplate=%s.csv -text/spreadsheet; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Spreadsheet Interchange Document"; nametemplate=%s.slk -application/x-quattropro; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Quattro Pro 6 for Windows Spreadsheet"; nametemplate=%s.wb2 -application/x-dbf; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="xBase Document"; nametemplate=%s.dbf -application/vnd.ms-excel.sheet.macroEnabled.12; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet with Macros Enabled"; nametemplate=%s.xlsm -application/vnd.ms-excel.template.macroEnabled.12; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet Template with Macros Enabled"; nametemplate=%s.xltm -application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet"; nametemplate=%s.xlsx -application/vnd.openxmlformats-officedocument.spreadsheetml.template; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet Template"; nametemplate=%s.xltx -application/vnd.lotus-1-2-3; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Lotus 1-2-3 spreadsheet"; nametemplate=%s.123 -application/vnd.ms-excel; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel Document"; nametemplate=%s.xls -application/msexcel; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel Document"; nametemplate=%s.xls -application/x-dbase; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="xBase Document"; nametemplate=%s.dbf -text/x-csv; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="CSV Document"; nametemplate=%s.csv -application/vnd.ms-powerpoint.presentation.macroEnabled.12; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation with Macros Enabled"; nametemplate=%s.pptm -application/vnd.ms-powerpoint.slideshow.macroEnabled.12; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Slide Show with Macros Enabled"; nametemplate=%s.ppsm -application/vnd.ms-powerpoint.template.macroEnabled.12; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Template with Macros Enabled"; nametemplate=%s.potm -application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation"; nametemplate=%s.pptx -application/vnd.openxmlformats-officedocument.presentationml.slideshow; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Slide Show"; nametemplate=%s.ppsx -application/vnd.openxmlformats-officedocument.presentationml.template; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Template"; nametemplate=%s.potx -application/vnd.ms-powerpoint; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Microsoft PowerPoint Document"; nametemplate=%s.ppt -application/mspowerpoint; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Microsoft PowerPoint Document"; nametemplate=%s.ppt -text/mathml; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="MathML Formula"; nametemplate=%s.mml -application/rtf; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf -#application/x-extension-txt; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Plain Text Document"; nametemplate=%s.txt -application/x-t602; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="T602 Document"; nametemplate=%s.602 -application/vnd.wordperfect; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp -application/vnd.ms-word.document.macroEnabled.12; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document with Macros Enabled"; nametemplate=%s.docm -application/vnd.ms-word.template.macroEnabled.12; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template with Macros Enabled"; nametemplate=%s.dotm -application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document"; nametemplate=%s.docx -application/vnd.openxmlformats-officedocument.wordprocessingml.template; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template"; nametemplate=%s.dotx -application/vnd.ms-works; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Works Document"; nametemplate=%s.wps -application/msword; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Word Document"; nametemplate=%s.doc -application/wordperfect; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp -text/rtf; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf diff --git a/.mutt/muttrc b/.mutt/muttrc deleted file mode 100644 index 1714354..0000000 --- a/.mutt/muttrc +++ /dev/null @@ -1,184 +0,0 @@ -# vim: ft=muttrc - -set realname="Matt Turner" -set from="mattst88@gmail.com" - -macro generic "1" ":set from=mattst88@gmail.com" -macro generic "2" ":set from=mattst88@gentoo.org" - -alternative_order text/plain text/enriched text/html -auto_view text/x-vcard text/html text/enriched - -set mbox_type = Maildir -set folder = "~/.mail" -#set mbox = "+intel/Inbox" -#set record = "+intel/Inbox" -set postponed = "+mattst88@gmail.com/Drafts" -set spoolfile = "+mattst88@gmail.com/INBOX" -set trash = "+archive-mattst88@gmail.com/Trash" - -named-mailboxes "Inbox" =mattst88@gmail.com/INBOX -named-mailboxes "Drafts" =mattst88@gmail.com/Drafts -named-mailboxes "Sent" =mattst88@gmail.com/Sent -named-mailboxes "alpha-contacts" =mattst88@gmail.com/alpha-contacts -named-mailboxes "craigslist" =mattst88@gmail.com/craigslist -named-mailboxes "forum-notifications" =mattst88@gmail.com/forum-notification -named-mailboxes "gentoo-comrel" =mattst88@gmail.com/gentoo-comrel -named-mailboxes "gentoo-core" =mattst88@gmail.com/gentoo-core -named-mailboxes "gentoo-council" =mattst88@gmail.com/gentoo-council -named-mailboxes "to-vacuum" =mattst88@gmail.com/to-vacuum - -set header_cache=~/.mutt/hcache -set mail_check_stats - -# sidebar -#set sidebar_width=15 -set sidebar_short_path = yes -set sidebar_format="%B%* %N" -set sidebar_visible = yes -bind index,pager B sidebar-toggle-visible -bind index,pager \ck sidebar-prev -bind index,pager \cj sidebar-next -bind index,pager \Co sidebar-open - -set sendmail="/usr/bin/msmtp" - -#set record=~/.mail/Sent -#set spoolfile=~/.mail/INBOX - -# needed for maildir format -# IMAP and INBOX (this should map to any existing IMAP folders) -#mailboxes = +intel/INBOX +intel/Sent -#=Drafts \ -#=Junk \ -#=Trash \ -#=Lastfolder - -set crypt_use_gpgme=yes - -### PGP -set pgp_sign_as=0x3BB639E56F861FA2E86505690FDD682D974CA72A -#set pgp_auto_decode = yes -#set pgp_use_gpg_agent = yes -#set pgp_autosign=yes -#set pgp_replyencrypt=yes -# -#set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" -#set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" -#set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" -#set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" -#set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" -#set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0x974CA72A -- -r %r -- %f" -#set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0x974CA72A -- -r %r -- %f" -#set pgp_import_command="gpg --no-verbose --import -v %f" -#set pgp_export_command="gpg --no-verbose --export --armor %r" -#set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" -#set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" -#set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" -# -#set pgp_timeout=1800 -#set pgp_good_sign="^gpg: Good signature from" -# -#folder-hook . `rm -f /tmp/mutt/*` - -# Basic Options -------------------------------------- -set wait_key = no # shut up, mutt -set timeout = 3 # idle time before scanning -set mail_check = 0 # minimum time between scans -unset move # gmail does that -set delete # don't ask, just do -unset confirmappend # don't ask, just do! -set quit # don't ask, just do!! -unset mark_old # read/new is good enough for me -set beep_new # bell on new mails -set pipe_decode # strip headers and eval mimes when piping -set thorough_search # strip headers and eval mimes before searching -set recall = no # don't ask if I want to recall a postponed message - -# Status Bar ----------------------------------------- -set status_chars = " *%A" -set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───" - -# Index View Options --------------------------------- -set date_format = "%m/%d" -set sort = threads # like gmail -set sort_aux = reverse-last-date-received # like gmail -set uncollapse_jump # don't collapse on an unread message -set sort_re # thread based on regex -set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" - -# Format for index list -# [message status flags] -# Date sent (in my timezone) -# 20 characters of who it's from -# Number of attachment (if > 0) -# Subject -#set index_format = "[%Z] %D %-20.20F %?X?%X& ? %?M?[%M]->&?%s" -set index_format = "[%Z] %D %-20.20F %s" -set index_format="%4C %Z %?GI?%GI& ? %[%d/%b] %-16.15F %?M?(%3M)& ? %s %> %?g?%g?" - -macro index F "mbsync -a" "run mbsync to sync all mail" - -# Index Key Bindings --------------------------------- -bind index g noop -bind index gg first-entry -bind index G last-entry -bind index R group-reply -bind index sync-mailbox -bind index P recall-message - -# Pager View Options --------------------------------- -set pager_index_lines = 10 # number of index lines to show -set pager_context = 3 # number of context lines to show -set pager_stop # don't go to next message automatically -set menu_scroll # scroll in menus -set tilde # show tildes like in vim -unset markers # no ugly plus signs -auto_view text/html -set strict_threads # Don't thread by message subjec -alternative_order text/html text/enriched text/plain - -set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" -alternative_order text/plain text/enriched text/html - -# Header Options ------------------------------------- -ignore * # ignore all headers -unignore from: to: cc: date: subject: # show only these -unhdr_order * # some distros order things by default -hdr_order from: to: cc: date: subject: # and in this order - -# Pager Key Bindings --------------------------------- -bind pager k previous-line -bind pager j next-line -bind pager g noop -bind pager gg top -bind pager G bottom -bind pager R group-reply - -# View attachments properly. -bind attach view-mailcap - -# Compose View Options ------------------------------- -set envelope_from # which from? -set sig_dashes # dashes before sig -set edit_headers # show headers when composing -set fast_reply # skip to compose when replying -unset reply_self # don't include myself when replying -unset askcc # don't ask for CC: -set fcc_attach # save attachments with the body -unset mime_forward # forward attachments as part of body -set forward_format = "Fwd: %s" # format of subject when forwarding -set forward_decode # decode when forwarding -set attribution = "On %d, %n wrote:" # format of quoting header -set reply_to # reply to Reply to: field -set reverse_name # reply as whomever it was to -set include # include message in replies -set forward_quote # include message in forwards -set editor = "vim" # Use terminal Vim to compose email. -set text_flowed = yes # Flow text instead of using line breaks -set sig_on_top # puts signature above quoted text -# set display_filter = ~/.mutt/display_filter.sh -set copy = yes - -source ~/.mutt/colors.muttrc -source ~/.mutt/aliases diff --git a/.tmux.conf b/.tmux.conf deleted file mode 100644 index 6979591..0000000 --- a/.tmux.conf +++ /dev/null @@ -1,6 +0,0 @@ -set-option -g default-shell $SHELL -set -g prefix C-a -unbind-key C-b -bind-key C-a send-prefix - -set-option -g mouse diff --git a/.vimrc b/.vimrc deleted file mode 100644 index 3aa7046..0000000 --- a/.vimrc +++ /dev/null @@ -1,13 +0,0 @@ -autocmd BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl,*.shader_test set syntax=glsl - -autocmd BufNewFile,BufRead /home/mattst88/projects/mesa/* set expandtab tabstop=8 softtabstop=3 shiftwidth=3 -autocmd BufNewFile,BufRead /home/mattst88/projects/piglit/* set noexpandtab tabstop=8 softtabstop=8 shiftwidth=8 -autocmd BufNewFile,BufRead Makefile* set noexpandtab tabstop=8 softtabstop=8 shiftwidth=8 -autocmd BufNewFile,BufRead *.mk set noexpandtab tabstop=8 softtabstop=8 shiftwidth=8 - -autocmd BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab - -set bg=dark -set modeline -set number relativenumber -set colorcolumn=+0 diff --git a/.wgetpaste.conf b/.wgetpaste.conf deleted file mode 100644 index 5db2281..0000000 --- a/.wgetpaste.conf +++ /dev/null @@ -1 +0,0 @@ -DEFAULT_SERVICE=0x0 diff --git a/.zshrc b/.zshrc deleted file mode 100644 index bdeb4f7..0000000 --- a/.zshrc +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/zsh - -autoload -U compinit -compinit - -zstyle ':completion:*:descriptions' format '%U%B%d%b%u' -zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' - -unsetopt correctall -unsetopt equals - -autoload -U promptinit -promptinit - -prompt gentoo - -export HISTSIZE=5000 -export HISTFILE="$HOME/.history" -export SAVEHIST=$HISTSIZE -setopt hist_ignore_all_dups -setopt hist_ignore_space -setopt share_history - -# Breaks "eix ^asdf" -# setopt extendedglob - -bindkey "^[[H" beginning-of-line -bindkey "^[[1~" beginning-of-line -bindkey "^[OH" beginning-of-line -bindkey "^[[F" end-of-line -bindkey "^[[4~" end-of-line -bindkey "^[OF" end-of-line -bindkey ' ' magic-space # also do history expansion on space -bindkey '^R' history-incremental-search-backward - -bindkey "^[[1;5C" forward-word -bindkey "^[[1;5D" backward-word - -bindkey '^[[Z' reverse-menu-complete - -# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~ -bindkey '^?' backward-delete-char -bindkey "^[[3~" delete-char -bindkey "^[3;5~" delete-char -bindkey "\e[3~" delete-char - -export PATH=:$PATH:~/bin - -alias pkgdiff="pkgdiff-mg" -alias grpe="grep" -alias gti="git" -alias sl="ls" - -unset SSH_AGENT_PID -if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" -fi -export GPG_TTY=$(tty) - -FILES=( - /etc/profile.d/autojump.sh - /etc/profile.d/vte-2.91.sh - /usr/share/fzf/key-bindings.zsh -) - -for file in "${FILES[@]}"; do - [[ -e $file ]] && . "${file}" -done diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..c35f941 --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,28 @@ +[user] + email = mattst88@gmail.com + name = Matt Turner + signingkey = 0xACEB29740C9A4E97 +[includeIf "gitdir:~/projects/gentoo/"] + path = ~/projects/gentoo/.gitconfig +[color] + ui = auto +[rebase] + autosquash = true +[core] + excludesfile = /home/mattst88/.global_ignore + autocrlf = false + filemode = false + pager = less -+F +[diff] + renames = true +[push] + default = simple +[alias] + fixes = show -s --pretty='format:Fixes: %h (\"%s\")' + co = checkout + br = branch + shwo = show + grpe = grep + lgo = log +[init] + defaultBranch = main diff --git a/git/.global_ignore b/git/.global_ignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/git/.global_ignore @@ -0,0 +1 @@ +tags diff --git a/git/projects/gentoo/.gitconfig b/git/projects/gentoo/.gitconfig new file mode 100644 index 0000000..79cffde --- /dev/null +++ b/git/projects/gentoo/.gitconfig @@ -0,0 +1,12 @@ +[user] + email = mattst88@gentoo.org +[pull] + ff = only + rebase = merges +[push] + default = simple + gpgsign = if-asked +[commit] + gpgsign = 1 +[sendemail] + to = gentoo-dev@lists.gentoo.org diff --git a/mpv/.mpv/config b/mpv/.mpv/config new file mode 100644 index 0000000..1e00302 --- /dev/null +++ b/mpv/.mpv/config @@ -0,0 +1,6 @@ +vo=gpu +hwdec=vaapi +ao=pulse + +demuxer-readahead-secs=30 +cache=yes diff --git a/msmtp/.msmtprc b/msmtp/.msmtprc new file mode 100644 index 0000000..7b050b3 --- /dev/null +++ b/msmtp/.msmtprc @@ -0,0 +1,22 @@ +defaults +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile ~/.msmtp.log + +account gmail +host smtp.gmail.com +port 587 +from mattst88@gmail.com +auth on +user mattst88 +passwordeval "gpg --quiet --for-your-eyes-only --no-tty -d ~/.password-store/email/msmtp-mattst88@gmail.com.gpg" + +account gentoo +host smtp.gentoo.org +port 587 +from mattst88@gentoo.org +auth on +user mattst88 +passwordeval "gpg --quiet --for-your-eyes-only --no-tty -d ~/.password-store/email/mattst88@gentoo.org.gpg" + +account default : gmail diff --git a/mutt/.mutt/aliases b/mutt/.mutt/aliases new file mode 100644 index 0000000..6074ce0 --- /dev/null +++ b/mutt/.mutt/aliases @@ -0,0 +1,3 @@ +alias gentoo-dev gentoo-dev@lists.gentoo.org +alias gentoo-dev-announce gentoo-dev-announce@lists.gentoo.org +alias gentoo-project gentoo-project@lists.gentoo.org diff --git a/mutt/.mutt/colors.muttrc b/mutt/.mutt/colors.muttrc new file mode 100644 index 0000000..c7e5679 --- /dev/null +++ b/mutt/.mutt/colors.muttrc @@ -0,0 +1,100 @@ +# vim: filetype=muttrc + +# basic colors --------------------------------------------------------- + +color normal white default +color error brightred default +#color tilde color235 default +#color message brightblack default +#color markers red color254 +#color attachment color254 default +color search brightwhite default +color status brightwhite blue +color indicator black brightgreen +color tree brightblue default + +# basic monocolor screen +mono bold bold +mono underline underline +mono indicator reverse +mono error bold + +# index ---------------------------------------------------------------- + +##color index red default "~D(!~p|~p)" # deleted +##color index color235 default ~F # flagged +##color index color166 default ~= # duplicate messages +##color index color240 default "~A!~N!~T!~p!~Q!~F!~D!~P" # the rest +##color index J_base default "~A~N!~T!~p!~Q!~F!~D" # the rest, new +#color index red default "~A" # all messages +#color index color166 default "~E" # expired messages +color index white default "~N" # new messages +#color index white default "~O" # old messages +#color index color61 default "~Q" # messages that have been replied to +color index default default "~R" # read messages +color index white default "~U" # unread messages +#color index white default "~U~$" # unread, unreferenced messages +#color index brightblack default "~v" # messages part of a collapsed thread +#color index brightblack default "~P" # messages from me +#color index color37 default "~p!~F" # messages to me +#color index color37 default "~N~p!~F" # new messages to me +#color index color37 default "~U~p!~F" # unread messages to me +#color index color240 default "~R~p!~F" # messages to me +#color index red default "~F" # flagged messages +#color index red default "~F~p" # flagged messages to me +#color index red default "~N~F" # new flagged messages +#color index red default "~N~F~p" # new flagged messages to me +#color index red default "~U~F~p" # new flagged messages to me +color index brightblack red "~D" # deleted messages +color index default default "~v~(!~N)" # collapsed thread with no unread +color index brightwhite default "~v~(~N)" # collapsed thread with some unread +## statusbg used to indicated flagged when foreground color shows other status +## for collapsed thread +#color index red color235 "~v~(~F)!~N" # collapsed thread with flagged, no unread +#color index color136 color235 "~v~(~F~N)" # collapsed thread with some unread & flagged +#color index color64 color235 "~N~v~(~F~N)" # collapsed thread with unread parent & flagged +#color index color64 color235 "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged +#color index color37 color235 "~v~(~p)" # collapsed thread with unread parent, no unread inside, some to me directly +color index brightblack red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial) +##color index color136 default "~(~N)" # messages in threads with some unread +##color index color64 default "~S" # superseded messages +##color index red default "~T" # tagged messages +##color index color166 red "~=" # duplicated messages +# +# message headers ------------------------------------------------------ + +color header brightwhite default "^(From|Subject):" + +# body ----------------------------------------------------------------- + +color quoted default default +#color quoted1 color37 default +#color quoted2 color136 default +#color quoted3 red default +#color quoted4 color166 default +# +#color signature color240 default +#color bold color235 default +#color underline color235 default +#color normal color244 default + +## PGP + +color body brightblack default "^gpg: " +color body brightgreen default "^gpg: Good signature .*" +color body brightwhite red "^gpg: BAD signature from.*" +mono body bold "^gpg: Good signature" +mono body bold "^gpg: BAD signature from.*" + +## Patches +#color body green default "^\+.*" +#color body red default "^-.*" +#color body yellow default "^@@@.*" +color body brightwhite default "^>?diff \-.*" +color body brightwhite default "^>?index [a-f0-9].*" +color body brightwhite default "^>?\-\-\- .*" +color body brightwhite default "^>?[\+]{3} .*" +color body green default "^>?[\+][^\+]+.*" +color body green default "^>?[\+]$" +color body red default "^>?\-[^\-]+.*" +color body cyan default "^>?@@ .*" diff --git a/mutt/.mutt/mailcap b/mutt/.mutt/mailcap new file mode 100644 index 0000000..637f214 --- /dev/null +++ b/mutt/.mutt/mailcap @@ -0,0 +1,84 @@ +text/calendar; vcalendar %s; copiousoutput; + +# Plain text +text/plain; vim %s + +#text/html; w3m -I %{charset} -dump %s; nametemplate=%s.html; copiousoutput +text/html; lynx -dump -width=78 %s | sed 's/^ //'; copiousoutput; needsterminal; nametemplate=%s.html + +image/jpg; eog %s +image/jpeg; eog %s +image/pjpeg; eog %s +image/png; eog %s +image/gif; eog %s + +application/pdf; evince %s + +application/pgp-encrypted; gpg --decrypt; copiousoutput + +# LibreOffice stuff +application/vnd.oasis.opendocument.database; libreoffice --nologo --base '%s'; edit=libreoffice --nologo --base '%s'; test=test -n "$DISPLAY"; description="OpenDocument Database"; nametemplate=%s.odb +application/vnd.oasis.opendocument.chart; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Chart"; nametemplate=%s.odc +application/vnd.oasis.opendocument.spreadsheet; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Spreadsheet"; nametemplate=%s.ods +application/vnd.oasis.opendocument.spreadsheet-template; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenDocument Spreadsheet Template"; nametemplate=%s.ots +application/vnd.oasis.opendocument.graphics; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenDocument Drawing"; nametemplate=%s.odg +application/vnd.oasis.opendocument.graphics-template; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenDocument Drawing Template"; nametemplate=%s.otg +application/vnd.oasis.opendocument.presentation; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenDocument Presentation"; nametemplate=%s.odp +application/vnd.oasis.opendocument.presentation-template; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenDocument Presentation Template"; nametemplate=%s.otp +application/vnd.oasis.opendocument.formula; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="OpenDocument Formula"; nametemplate=%s.odf +application/vnd.oasis.opendocument.text; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt +application/vnd.oasis.opendocument.text-master; libreoffice --nologo -global '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Master Document"; nametemplate=%s.odm +application/vnd.oasis.opendocument.text-template; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document Template"; nametemplate=%s.ott +application/vnd.oasis.opendocument.text-web; libreoffice --nologo -web '%s'; edit=libreoffice --nologo -web '%s'; test=test -n "$DISPLAY"; description="OpenDocument HTML Document Template"; nametemplate=%s.oth +application/vnd.sun.xml.base; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Database"; nametemplate=%s.sdb +application/vnd.sun.xml.calc; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Spreadsheet"; nametemplate=%s.sxc +application/vnd.sun.xml.calc.template; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Spreadsheet Template"; nametemplate=%s.stc +application/vnd.sun.xml.draw; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Drawing"; nametemplate=%s.sxd +application/vnd.sun.xml.draw.template; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Drawing Template"; nametemplate=%s.std +application/vnd.stardivision.calc; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="StarCalc 5.0"; nametemplate=%s.sdc +application/vnd.stardivision.chart; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="StarChart 5.0"; nametemplate=%s.sds +application/vnd.stardivision.draw; libreoffice --nologo --draw '%s'; edit=libreoffice --nologo --draw '%s'; test=test -n "$DISPLAY"; description="StarDraw 5.0"; nametemplate=%s.sda +application/vnd.stardivision.impress; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="StarImpress 5.0"; nametemplate=%s.sdd +application/vnd.stardivision.math; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="StarMath 5.0"; nametemplate=%s.sdf +application/vnd.stardivision.writer-global; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="StarWriter 5.0 Master Document"; nametemplate=%s.sgl +application/vnd.stardivision.writer; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="StarWriter 5.0"; nametemplate=%s.sdw +application/vnd.sun.xml.impress; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Presentation"; nametemplate=%s.sxi +application/vnd.sun.xml.impress.template; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Presentation Template"; nametemplate=%s.sti +application/vnd.sun.xml.math; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="OpenOffice.org Formula"; nametemplate=%s.sxm +application/vnd.sun.xml.writer; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Text Document"; nametemplate=%s.sxw +application/vnd.sun.xml.writer.global; libreoffice --nologo -global '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Master Document"; nametemplate=%s.sxg +application/vnd.sun.xml.writer.template; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; description="OpenOffice.org Text Document Template"; nametemplate=%s.stw +text/csv; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="CSV Document"; nametemplate=%s.csv +text/spreadsheet; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Spreadsheet Interchange Document"; nametemplate=%s.slk +application/x-quattropro; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Quattro Pro 6 for Windows Spreadsheet"; nametemplate=%s.wb2 +application/x-dbf; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="xBase Document"; nametemplate=%s.dbf +application/vnd.ms-excel.sheet.macroEnabled.12; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet with Macros Enabled"; nametemplate=%s.xlsm +application/vnd.ms-excel.template.macroEnabled.12; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet Template with Macros Enabled"; nametemplate=%s.xltm +application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet"; nametemplate=%s.xlsx +application/vnd.openxmlformats-officedocument.spreadsheetml.template; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Office Open XML Spreadsheet Template"; nametemplate=%s.xltx +application/vnd.lotus-1-2-3; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Lotus 1-2-3 spreadsheet"; nametemplate=%s.123 +application/vnd.ms-excel; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel Document"; nametemplate=%s.xls +application/msexcel; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="Microsoft Excel Document"; nametemplate=%s.xls +application/x-dbase; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="xBase Document"; nametemplate=%s.dbf +text/x-csv; libreoffice --nologo --calc '%s'; edit=libreoffice --nologo --calc '%s'; test=test -n "$DISPLAY"; description="CSV Document"; nametemplate=%s.csv +application/vnd.ms-powerpoint.presentation.macroEnabled.12; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation with Macros Enabled"; nametemplate=%s.pptm +application/vnd.ms-powerpoint.slideshow.macroEnabled.12; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Slide Show with Macros Enabled"; nametemplate=%s.ppsm +application/vnd.ms-powerpoint.template.macroEnabled.12; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Template with Macros Enabled"; nametemplate=%s.potm +application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation"; nametemplate=%s.pptx +application/vnd.openxmlformats-officedocument.presentationml.slideshow; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Slide Show"; nametemplate=%s.ppsx +application/vnd.openxmlformats-officedocument.presentationml.template; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Office Open XML Presentation Template"; nametemplate=%s.potx +application/vnd.ms-powerpoint; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Microsoft PowerPoint Document"; nametemplate=%s.ppt +application/mspowerpoint; libreoffice --nologo --impress '%s'; edit=libreoffice --nologo --impress '%s'; test=test -n "$DISPLAY"; description="Microsoft PowerPoint Document"; nametemplate=%s.ppt +text/mathml; libreoffice --nologo --math '%s'; edit=libreoffice --nologo --math '%s'; test=test -n "$DISPLAY"; description="MathML Formula"; nametemplate=%s.mml +application/rtf; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf +#application/x-extension-txt; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Plain Text Document"; nametemplate=%s.txt +application/x-t602; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="T602 Document"; nametemplate=%s.602 +application/vnd.wordperfect; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp +application/vnd.ms-word.document.macroEnabled.12; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document with Macros Enabled"; nametemplate=%s.docm +application/vnd.ms-word.template.macroEnabled.12; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template with Macros Enabled"; nametemplate=%s.dotm +application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document"; nametemplate=%s.docx +application/vnd.openxmlformats-officedocument.wordprocessingml.template; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document Template"; nametemplate=%s.dotx +application/vnd.ms-works; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Works Document"; nametemplate=%s.wps +application/msword; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Word Document"; nametemplate=%s.doc +application/wordperfect; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="WordPerfect Document"; nametemplate=%s.wp +text/rtf; libreoffice --nologo --writer '%s'; edit=libreoffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Rich Text Format"; nametemplate=%s.rtf diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc new file mode 100644 index 0000000..1714354 --- /dev/null +++ b/mutt/.mutt/muttrc @@ -0,0 +1,184 @@ +# vim: ft=muttrc + +set realname="Matt Turner" +set from="mattst88@gmail.com" + +macro generic "1" ":set from=mattst88@gmail.com" +macro generic "2" ":set from=mattst88@gentoo.org" + +alternative_order text/plain text/enriched text/html +auto_view text/x-vcard text/html text/enriched + +set mbox_type = Maildir +set folder = "~/.mail" +#set mbox = "+intel/Inbox" +#set record = "+intel/Inbox" +set postponed = "+mattst88@gmail.com/Drafts" +set spoolfile = "+mattst88@gmail.com/INBOX" +set trash = "+archive-mattst88@gmail.com/Trash" + +named-mailboxes "Inbox" =mattst88@gmail.com/INBOX +named-mailboxes "Drafts" =mattst88@gmail.com/Drafts +named-mailboxes "Sent" =mattst88@gmail.com/Sent +named-mailboxes "alpha-contacts" =mattst88@gmail.com/alpha-contacts +named-mailboxes "craigslist" =mattst88@gmail.com/craigslist +named-mailboxes "forum-notifications" =mattst88@gmail.com/forum-notification +named-mailboxes "gentoo-comrel" =mattst88@gmail.com/gentoo-comrel +named-mailboxes "gentoo-core" =mattst88@gmail.com/gentoo-core +named-mailboxes "gentoo-council" =mattst88@gmail.com/gentoo-council +named-mailboxes "to-vacuum" =mattst88@gmail.com/to-vacuum + +set header_cache=~/.mutt/hcache +set mail_check_stats + +# sidebar +#set sidebar_width=15 +set sidebar_short_path = yes +set sidebar_format="%B%* %N" +set sidebar_visible = yes +bind index,pager B sidebar-toggle-visible +bind index,pager \ck sidebar-prev +bind index,pager \cj sidebar-next +bind index,pager \Co sidebar-open + +set sendmail="/usr/bin/msmtp" + +#set record=~/.mail/Sent +#set spoolfile=~/.mail/INBOX + +# needed for maildir format +# IMAP and INBOX (this should map to any existing IMAP folders) +#mailboxes = +intel/INBOX +intel/Sent +#=Drafts \ +#=Junk \ +#=Trash \ +#=Lastfolder + +set crypt_use_gpgme=yes + +### PGP +set pgp_sign_as=0x3BB639E56F861FA2E86505690FDD682D974CA72A +#set pgp_auto_decode = yes +#set pgp_use_gpg_agent = yes +#set pgp_autosign=yes +#set pgp_replyencrypt=yes +# +#set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f" +#set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f" +#set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f" +#set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" +#set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" +#set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0x974CA72A -- -r %r -- %f" +#set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0x974CA72A -- -r %r -- %f" +#set pgp_import_command="gpg --no-verbose --import -v %f" +#set pgp_export_command="gpg --no-verbose --export --armor %r" +#set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r" +#set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r" +#set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r" +# +#set pgp_timeout=1800 +#set pgp_good_sign="^gpg: Good signature from" +# +#folder-hook . `rm -f /tmp/mutt/*` + +# Basic Options -------------------------------------- +set wait_key = no # shut up, mutt +set timeout = 3 # idle time before scanning +set mail_check = 0 # minimum time between scans +unset move # gmail does that +set delete # don't ask, just do +unset confirmappend # don't ask, just do! +set quit # don't ask, just do!! +unset mark_old # read/new is good enough for me +set beep_new # bell on new mails +set pipe_decode # strip headers and eval mimes when piping +set thorough_search # strip headers and eval mimes before searching +set recall = no # don't ask if I want to recall a postponed message + +# Status Bar ----------------------------------------- +set status_chars = " *%A" +set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───" + +# Index View Options --------------------------------- +set date_format = "%m/%d" +set sort = threads # like gmail +set sort_aux = reverse-last-date-received # like gmail +set uncollapse_jump # don't collapse on an unread message +set sort_re # thread based on regex +set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" + +# Format for index list +# [message status flags] +# Date sent (in my timezone) +# 20 characters of who it's from +# Number of attachment (if > 0) +# Subject +#set index_format = "[%Z] %D %-20.20F %?X?%X& ? %?M?[%M]->&?%s" +set index_format = "[%Z] %D %-20.20F %s" +set index_format="%4C %Z %?GI?%GI& ? %[%d/%b] %-16.15F %?M?(%3M)& ? %s %> %?g?%g?" + +macro index F "mbsync -a" "run mbsync to sync all mail" + +# Index Key Bindings --------------------------------- +bind index g noop +bind index gg first-entry +bind index G last-entry +bind index R group-reply +bind index sync-mailbox +bind index P recall-message + +# Pager View Options --------------------------------- +set pager_index_lines = 10 # number of index lines to show +set pager_context = 3 # number of context lines to show +set pager_stop # don't go to next message automatically +set menu_scroll # scroll in menus +set tilde # show tildes like in vim +unset markers # no ugly plus signs +auto_view text/html +set strict_threads # Don't thread by message subjec +alternative_order text/html text/enriched text/plain + +set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+" +alternative_order text/plain text/enriched text/html + +# Header Options ------------------------------------- +ignore * # ignore all headers +unignore from: to: cc: date: subject: # show only these +unhdr_order * # some distros order things by default +hdr_order from: to: cc: date: subject: # and in this order + +# Pager Key Bindings --------------------------------- +bind pager k previous-line +bind pager j next-line +bind pager g noop +bind pager gg top +bind pager G bottom +bind pager R group-reply + +# View attachments properly. +bind attach view-mailcap + +# Compose View Options ------------------------------- +set envelope_from # which from? +set sig_dashes # dashes before sig +set edit_headers # show headers when composing +set fast_reply # skip to compose when replying +unset reply_self # don't include myself when replying +unset askcc # don't ask for CC: +set fcc_attach # save attachments with the body +unset mime_forward # forward attachments as part of body +set forward_format = "Fwd: %s" # format of subject when forwarding +set forward_decode # decode when forwarding +set attribution = "On %d, %n wrote:" # format of quoting header +set reply_to # reply to Reply to: field +set reverse_name # reply as whomever it was to +set include # include message in replies +set forward_quote # include message in forwards +set editor = "vim" # Use terminal Vim to compose email. +set text_flowed = yes # Flow text instead of using line breaks +set sig_on_top # puts signature above quoted text +# set display_filter = ~/.mutt/display_filter.sh +set copy = yes + +source ~/.mutt/colors.muttrc +source ~/.mutt/aliases diff --git a/nvim/.config/nvim/coc-settings.json b/nvim/.config/nvim/coc-settings.json new file mode 100644 index 0000000..18223ed --- /dev/null +++ b/nvim/.config/nvim/coc-settings.json @@ -0,0 +1,89 @@ +{ + "python.linting.pylintEnabled": true, + "python.linting.flake8Enabled": false, + "python.linting.enabled": true, + "python.pythonPath": "/usr/bin/python", + + "languageserver": { + "ccls": { + "command": "ccls", + "filetypes": ["c", "cpp", "cuda", "objc", "objcpp"], + "rootPatterns": [".ccls-root", ".git/"], + "initializationOptions": { + "highlight": { + "lsRanges": true + }, + "cache": { + "directory": ".ccls-cache" + } + } + }, + "python": { + "command": "python", + "args": [ + "-mpylsp", + "-vv", + "--log-file", + "/tmp/lsp_python.log" + ], + "trace.server": "verbose", + "filetypes": [ + "python" + ], + "settings": { + "pyls": { + "enable": true, + "trace": { + "server": "verbose" + }, + "commandPath": "", + "configurationSources": [ + "pycodestyle" + ], + "plugins": { + "jedi_completion": { + "enabled": true + }, + "jedi_hover": { + "enabled": true + }, + "jedi_references": { + "enabled": true + }, + "jedi_signature_help": { + "enabled": true + }, + "jedi_symbols": { + "enabled": true, + "all_scopes": true + }, + "mccabe": { + "enabled": true, + "threshold": 15 + }, + "preload": { + "enabled": true + }, + "pycodestyle": { + "enabled": true + }, + "pydocstyle": { + "enabled": false, + "match": "(?!test_).*\\.py", + "matchDir": "[^\\.].*" + }, + "pyflakes": { + "enabled": true + }, + "rope_completion": { + "enabled": true + }, + "yapf": { + "enabled": true + } + } + } + } + } + } +} diff --git a/nvim/.config/nvim/coc.vim b/nvim/.config/nvim/coc.vim new file mode 100644 index 0000000..da06334 --- /dev/null +++ b/nvim/.config/nvim/coc.vim @@ -0,0 +1,128 @@ +" if hidden is not set, TextEdit might fail. +set hidden + +" Some servers have issues with backup files, see #649 +set nobackup +set nowritebackup + +" Better display for messages +set cmdheight=2 + +" You will have bad experience for diagnostic messages when it's default 4000. +set updatetime=300 + +" don't give |ins-completion-menu| messages. +set shortmess+=c + +" always show signcolumns +set signcolumn=yes + +" Use tab for trigger completion with characters ahead and navigate. +" Use command ':verbose imap ' to make sure tab is not mapped by other plugin. +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() +inoremap pumvisible() ? "\" : "\" + +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction + +" Use to trigger completion. +inoremap coc#refresh() + +" Use to confirm completion, `u` means break undo chain at current position. +" Coc only does snippet and additional edit on confirm. +inoremap pumvisible() ? "\" : "\u\" +" Or use `complete_info` if your vim support it, like: +" inoremap complete_info()["selected"] != "-1" ? "\" : "\u\" + +" Use `[g` and `]g` to navigate diagnostics +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) + +" Remap keys for gotos +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) + +" Use K to show documentation in preview window +nnoremap K :call show_documentation() + +function! s:show_documentation() + if (index(['vim','help'], &filetype) >= 0) + execute 'h '.expand('') + else + call CocAction('doHover') + endif +endfunction + +" Highlight symbol under cursor on CursorHold +autocmd CursorHold * silent call CocActionAsync('highlight') + +" Remap for rename current word +nmap rn (coc-rename) + +" Remap for format selected region +xmap f (coc-format-selected) +nmap f (coc-format-selected) + +augroup mygroup + autocmd! + " Setup formatexpr specified filetype(s). + autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') + " Update signature help on jump placeholder + autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') +augroup end + +" Remap for do codeAction of selected region, ex: `aap` for current paragraph +xmap a (coc-codeaction-selected) +nmap a (coc-codeaction-selected) + +" Remap for do codeAction of current line +nmap ac (coc-codeaction) +" Fix autofix problem of current line +nmap qf (coc-fix-current) + +" Create mappings for function text object, requires document symbols feature of languageserver. +xmap if (coc-funcobj-i) +xmap af (coc-funcobj-a) +omap if (coc-funcobj-i) +omap af (coc-funcobj-a) + +" Use for select selections ranges, needs server support, like: coc-tsserver, coc-python +nmap (coc-range-select) +xmap (coc-range-select) + +" Use `:Format` to format current buffer +command! -nargs=0 Format :call CocAction('format') + +" Use `:Fold` to fold current buffer +command! -nargs=? Fold :call CocAction('fold', ) + +" use `:OR` for organize import of current buffer +command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') + +" Add status line support, for integration with other plugin, checkout `:h coc-status` +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} + +" Using CocList +" Show all diagnostics +nnoremap a :CocList diagnostics +" Manage extensions +nnoremap e :CocList extensions +" Show commands +nnoremap c :CocList commands +" Find symbol of current document +nnoremap o :CocList outline +" Search workspace symbols +nnoremap s :CocList -I symbols +" Do default action for next item. +nnoremap j :CocNext +" Do default action for previous item. +nnoremap k :CocPrev +" Resume latest coc list +nnoremap p :CocListResume diff --git a/nvim/.config/nvim/fzf.vim b/nvim/.config/nvim/fzf.vim new file mode 100644 index 0000000..cef3936 --- /dev/null +++ b/nvim/.config/nvim/fzf.vim @@ -0,0 +1,5 @@ +map b :Buffers + +nnoremap gr :Rg +nnoremap gg :GFiles +nnoremap gf :Files diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim new file mode 100644 index 0000000..91e3378 --- /dev/null +++ b/nvim/.config/nvim/init.vim @@ -0,0 +1,6 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath = &runtimepath +source ~/.vimrc +source ~/.config/nvim/coc.vim +source ~/.config/nvim/fzf.vim +source ~/.config/nvim/plugins.vim diff --git a/nvim/.config/nvim/plugins.vim b/nvim/.config/nvim/plugins.vim new file mode 100644 index 0000000..b485d9b --- /dev/null +++ b/nvim/.config/nvim/plugins.vim @@ -0,0 +1,23 @@ +call plug#begin() +Plug 'airblade/vim-rooter' +Plug 'bogado/file-line' +Plug 'editorconfig/editorconfig-vim' +Plug 'google/vim-searchindex' +Plug 'igankevich/mesonic' +Plug 'jackguo380/vim-lsp-cxx-highlight' +Plug 'jamessan/vim-gnupg' +Plug 'javier-lopez/sprunge.vim' +Plug 'junegunn/fzf.vim' +Plug 'neoclide/coc.nvim', {'branch': 'release'} +Plug 'preservim/nerdcommenter' +Plug 'preservim/nerdtree' +Plug 'saltstack/salt-vim' +Plug 'sheerun/vim-polyglot' +Plug 'tmsvg/pear-tree' +Plug 'tpope/vim-eunuch' +Plug 'tpope/vim-fugitive' +Plug 'tpope/vim-surround' +Plug 'vim-scripts/AnsiEsc.vim' +Plug 'vim-scripts/git_patch_tags.vim' +Plug 'Yggdroot/indentLine' +call plug#end() diff --git a/nvim/.vimrc b/nvim/.vimrc new file mode 100644 index 0000000..3aa7046 --- /dev/null +++ b/nvim/.vimrc @@ -0,0 +1,13 @@ +autocmd BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl,*.shader_test set syntax=glsl + +autocmd BufNewFile,BufRead /home/mattst88/projects/mesa/* set expandtab tabstop=8 softtabstop=3 shiftwidth=3 +autocmd BufNewFile,BufRead /home/mattst88/projects/piglit/* set noexpandtab tabstop=8 softtabstop=8 shiftwidth=8 +autocmd BufNewFile,BufRead Makefile* set noexpandtab tabstop=8 softtabstop=8 shiftwidth=8 +autocmd BufNewFile,BufRead *.mk set noexpandtab tabstop=8 softtabstop=8 shiftwidth=8 + +autocmd BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab + +set bg=dark +set modeline +set number relativenumber +set colorcolumn=+0 diff --git a/projects/gentoo/.gitconfig b/projects/gentoo/.gitconfig deleted file mode 100644 index 79cffde..0000000 --- a/projects/gentoo/.gitconfig +++ /dev/null @@ -1,12 +0,0 @@ -[user] - email = mattst88@gentoo.org -[pull] - ff = only - rebase = merges -[push] - default = simple - gpgsign = if-asked -[commit] - gpgsign = 1 -[sendemail] - to = gentoo-dev@lists.gentoo.org diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..6979591 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,6 @@ +set-option -g default-shell $SHELL +set -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix + +set-option -g mouse diff --git a/wgetpaste/.wgetpaste.conf b/wgetpaste/.wgetpaste.conf new file mode 100644 index 0000000..5db2281 --- /dev/null +++ b/wgetpaste/.wgetpaste.conf @@ -0,0 +1 @@ +DEFAULT_SERVICE=0x0 diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..bdeb4f7 --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,68 @@ +#!/bin/zsh + +autoload -U compinit +compinit + +zstyle ':completion:*:descriptions' format '%U%B%d%b%u' +zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' + +unsetopt correctall +unsetopt equals + +autoload -U promptinit +promptinit + +prompt gentoo + +export HISTSIZE=5000 +export HISTFILE="$HOME/.history" +export SAVEHIST=$HISTSIZE +setopt hist_ignore_all_dups +setopt hist_ignore_space +setopt share_history + +# Breaks "eix ^asdf" +# setopt extendedglob + +bindkey "^[[H" beginning-of-line +bindkey "^[[1~" beginning-of-line +bindkey "^[OH" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[4~" end-of-line +bindkey "^[OF" end-of-line +bindkey ' ' magic-space # also do history expansion on space +bindkey '^R' history-incremental-search-backward + +bindkey "^[[1;5C" forward-word +bindkey "^[[1;5D" backward-word + +bindkey '^[[Z' reverse-menu-complete + +# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~ +bindkey '^?' backward-delete-char +bindkey "^[[3~" delete-char +bindkey "^[3;5~" delete-char +bindkey "\e[3~" delete-char + +export PATH=:$PATH:~/bin + +alias pkgdiff="pkgdiff-mg" +alias grpe="grep" +alias gti="git" +alias sl="ls" + +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +fi +export GPG_TTY=$(tty) + +FILES=( + /etc/profile.d/autojump.sh + /etc/profile.d/vte-2.91.sh + /usr/share/fzf/key-bindings.zsh +) + +for file in "${FILES[@]}"; do + [[ -e $file ]] && . "${file}" +done -- cgit v1.2.3