From 14e9a759aff84c74054e863bebc7de5ad9ed7c10 Mon Sep 17 00:00:00 2001 From: "J. Elfring" Date: Sat, 23 Apr 2022 20:54:44 +0200 Subject: [PATCH] Switch to pass --- simpleDots/bin/decryptNdump_pass | 21 ++++ simpleDots/bin/fzpass | 2 +- simpleDots/vim/autoload/mocha.vim | 172 ++++++++++++++++++++++++++++++ sysconfig_arch/baseconfig.yaml | 1 + sysconfig_arch/workstation.yaml | 1 - 5 files changed, 195 insertions(+), 2 deletions(-) create mode 100755 simpleDots/bin/decryptNdump_pass create mode 100644 simpleDots/vim/autoload/mocha.vim diff --git a/simpleDots/bin/decryptNdump_pass b/simpleDots/bin/decryptNdump_pass new file mode 100755 index 0000000..ae3735c --- /dev/null +++ b/simpleDots/bin/decryptNdump_pass @@ -0,0 +1,21 @@ +#!/bin/bash + +## A script to decrypt and dump the passwordstore to +## save it to a trusted volume + +prefix=${PASSWORD_STORE_DIR:=~/.password-store} + +## Set the IFS to account for spaces in filenames +IFS=$(echo -en "\n\b") + +for file in $(find $prefix -name '*.gpg') +do + nicename=$(echo $file \ + | cut --characters ${#prefix}- \ + | cut --characters 3- \ + | rev | cut --characters 5- | rev + ) + echo + echo "==> "$nicename + gpg --quiet --decrypt $file +done diff --git a/simpleDots/bin/fzpass b/simpleDots/bin/fzpass index 25f8620..f3f30ba 100755 --- a/simpleDots/bin/fzpass +++ b/simpleDots/bin/fzpass @@ -10,7 +10,7 @@ prefixlength=${#prefix} password_files=$( find $prefix -name '*.gpg' \ | cut --characters ${#prefix}- \ | cut --characters 3- \ - | rev | cut --characters 5- | rev + | rev | cut --characters 5- | rev ) ## Send the filelist to fzf, use # for a preview and diff --git a/simpleDots/vim/autoload/mocha.vim b/simpleDots/vim/autoload/mocha.vim new file mode 100644 index 0000000..3ca8ebc --- /dev/null +++ b/simpleDots/vim/autoload/mocha.vim @@ -0,0 +1,172 @@ +" Vim color file +" Maintainer: Daniel Schierbeck + +set background=dark +if version > 580 + " no guarantees for version 5.8 and below, but this makes it stop + " complaining + hi clear + if exists("syntax_on") + syntax reset + endif +endif +let g:colors_name="mocha" + +hi Normal guifg=#ddddcc guibg=#1B1814 gui=none + +" highlight groups +hi Cursor guifg=black guibg=yellow gui=none +hi ErrorMsg guifg=white guibg=red gui=none +hi VertSplit guifg=gray40 guibg=gray40 gui=none +hi Folded guifg=grey guibg=grey30 gui=none +hi FoldColumn guifg=tan guibg=grey30 gui=none +hi IncSearch guifg=#b0ffff guibg=#2050d0 +hi LineNr guifg=burlywood3 gui=none +hi ModeMsg guifg=SkyBlue gui=none +hi MoreMsg guifg=SeaGreen gui=none +hi NonText guifg=cyan gui=none +hi Question guifg=springgreen gui=none +hi Search guifg=gray80 guibg=#445599 gui=none +hi SpecialKey guifg=cyan gui=none +hi StatusLine guifg=black guibg=#c2bfa5 gui=bold +hi StatusLineNC guifg=white guibg=gray20 gui=none +hi TabLine guibg=#564d43 guifg=#f7f7f1 gui=underline +hi TabLineFill guibg=#564d43 guifg=#f7f7f1 gui=underline +hi TabLineSel guibg=bg guifg=#f7f7f1 gui=bold +hi Title guifg=white gui=none +hi Visual guifg=white guibg=SkyBlue4 gui=none +hi WarningMsg guifg=salmon gui=none +hi Pmenu guifg=#000000 guibg=#a78869 gui=none +hi PmenuSbar guifg=fg guibg=#B99F86 gui=none +hi PmenuSel guifg=bg guibg=#c0aa94 gui=none +hi PmenuThumb guifg=bg guibg=#f7f7f1 gui=none +hi WildMenu guifg=gray guibg=gray17 gui=none +hi MatchParen guifg=white guibg=skyblue4 gui=bold +hi DiffAdd guifg=black guibg=wheat1 +hi DiffChange guifg=black guibg=skyblue1 +hi DiffText guifg=black guibg=hotpink1 gui=none +hi DiffDelete guibg=gray45 guifg=black gui=none + + +" Real diff +hi DiffAdded guifg=#4b4 +hi DiffRemoved guifg=#f77 + +if has("spell") + hi SpellBad guisp=#f07070 gui=undercurl + hi SpellCap guisp=#7070f0 gui=undercurl + hi SpellLocal guisp=#70f0f0 gui=undercurl + hi SpellRare guisp=#f070f0 gui=undercurl +endif + +hi Comment guifg=#7F8A70 gui=none +hi Number guifg=#A4C260 +hi Constant guifg=white gui=none +hi Identifier guifg=white +hi Function guifg=white gui=none +hi Statement guifg=lightgoldenrod2 gui=none +hi Delimiter guifg=#997744 +hi PreProc guifg=lightgoldenrod2 gui=none +hi Special guifg=#CDA869 gui=none +hi Type guifg=white gui=none +hi Character guifg=#DDF2A4 +hi Boolean guifg=#AA88AA +hi Ignore guifg=grey40 gui=none +hi Todo guifg=lightgoldenrod2 guibg=grey30 gui=bold +hi String guifg=#A4C260 +hi SignColumn guibg=#1B1814 gui=none +hi ShowMarksHLl guifg=lightgoldenrod2 guibg=#151207 + +hi link Operator Special +hi link Structure Special +hi link StorageClass Special + +" TODO +hi Tag gui=underline + +" color terminal definitions +hi SpecialKey ctermfg=darkgreen +hi NonText cterm=bold ctermfg=darkblue +hi Directory ctermfg=darkcyan +hi ErrorMsg cterm=bold ctermfg=7 ctermbg=1 +hi IncSearch cterm=NONE ctermfg=yellow ctermbg=green +hi Search cterm=NONE ctermfg=grey ctermbg=blue +hi MoreMsg ctermfg=darkgreen +hi ModeMsg cterm=NONE ctermfg=brown +hi LineNr ctermfg=3 +hi Question ctermfg=green +hi StatusLine cterm=bold,reverse +hi StatusLineNC cterm=reverse +hi VertSplit cterm=reverse +hi Title ctermfg=5 +hi Visual cterm=reverse +hi VisualNOS cterm=bold,underline +hi WarningMsg ctermfg=1 +hi WildMenu ctermfg=0 ctermbg=3 +hi Folded ctermfg=darkgrey ctermbg=NONE +hi FoldColumn ctermfg=darkgrey ctermbg=NONE +hi DiffAdd ctermbg=4 +hi DiffChange ctermbg=5 +hi DiffDelete cterm=bold ctermfg=4 ctermbg=6 +hi DiffText cterm=bold ctermbg=1 +hi Comment ctermfg=darkcyan +hi Constant ctermfg=brown +hi Special ctermfg=5 +hi Identifier ctermfg=6 +hi Statement ctermfg=3 +hi PreProc ctermfg=5 +hi Type ctermfg=2 +hi Underlined cterm=underline ctermfg=5 +hi Ignore ctermfg=darkgrey +hi Error cterm=bold ctermfg=7 ctermbg=1 + + +" Ruby +"hi rubySymbol guifg=#DDF2A4 +hi link rubySymbol Character +hi rubyConstant guifg=white + + +" Rails +hi link railsStringSpecial rubySymbol +hi railsMethod guifg=lightgoldenrod2 +hi railsClass guifg=white + + +" HTML +hi htmlArg guifg=lightgoldenrod2 +hi htmlTag guifg=lightgoldenrod2 +hi htmlEndTag guifg=lightgoldenrod2 + + +" PHP +hi phpStructure guifg=lightgoldenrod2 +hi phpStorageClass guifg=lightgoldenrod2 +hi phpStatement guifg=lightgoldenrod2 +hi link phpVarSelector Identifier +hi link phpQuoteSingle Delimiter +hi link phpQuoteDouble Delimiter + + +" JavaScript +hi javaScriptFunction guifg=lightgoldenrod2 + + +" Make +hi link makeTarget Operator + + +" Java +hi link javaClassDecl Keyword +hi link javaScopeDecl Keyword +hi link javaBraces Special + + +" Python +hi link pythonOperator Keyword +hi link pythonDecorator Delimiter + + +" Common Lisp +hi link lispAtom Character +hi link lispKey Special diff --git a/sysconfig_arch/baseconfig.yaml b/sysconfig_arch/baseconfig.yaml index a15873b..e124951 100644 --- a/sysconfig_arch/baseconfig.yaml +++ b/sysconfig_arch/baseconfig.yaml @@ -12,6 +12,7 @@ - intel-ucode - make - openssh + - pass - rsync - sudo - vim diff --git a/sysconfig_arch/workstation.yaml b/sysconfig_arch/workstation.yaml index 702e527..975fc40 100644 --- a/sysconfig_arch/workstation.yaml +++ b/sysconfig_arch/workstation.yaml @@ -46,7 +46,6 @@ - imagemagick - inetutils - ispell - - keepassxc - less - libreoffice-fresh - licenses