diff options
-rw-r--r-- | .gpg.rc | 85 | ||||
-rw-r--r-- | .muttrc | 64 | ||||
-rw-r--r-- | .vim/.netrwhist | 3 | ||||
-rw-r--r-- | .vim/filetype.vim | 4 | ||||
-rw-r--r-- | .vimrc | 80 | ||||
-rw-r--r-- | .zshrc | 45 |
6 files changed, 281 insertions, 0 deletions
@@ -0,0 +1,85 @@ +# -*-muttrc-*- +# +# Command formats for gpg. +# +# This version uses gpg-2comp from +# http://muppet.faveve.uni-stuttgart.de/~gero/gpg-2comp.tar.gz +# +# $Id: gpg.rc,v 3.1 2002/03/26 22:23:58 roessler Exp $ +# +# %p The empty string when no passphrase is needed, +# the string "PGPPASSFD=0" if one is needed. +# +# This is mostly used in conditional % sequences. +# +# %f Most PGP commands operate on a single file or a file +# containing a message. %f expands to this file's name. +# +# %s When verifying signatures, there is another temporary file +# containing the detached signature. %s expands to this +# file's name. +# +# %a In "signing" contexts, this expands to the value of the +# configuration variable $pgp_sign_as. You probably need to +# use this within a conditional % sequence. +# +# %r In many contexts, mutt passes key IDs to pgp. %r expands to +# a list of key IDs. + +# Note that we explicitly set the comment armor header since GnuPG, when used +# in some localiaztion environments, generates 8bit data in that header, thereby +# breaking PGP/MIME. + +# decode application/pgp +set pgp_decode_command="/usr/bin/gpg --charset utf-8 --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f" + +# verify a pgp/mime signature +set pgp_verify_command="/usr/bin/gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f" + +# decrypt a pgp/mime attachment +set pgp_decrypt_command="/usr/bin/gpg --status-fd=2 --passphrase-fd 0 --no-verbose --quiet --batch --output - %f" + +# create a pgp/mime signed attachment +# set pgp_sign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" +set pgp_sign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f" + +# create a application/pgp signed (old-style) message +# set pgp_clearsign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" +set pgp_clearsign_command="/usr/bin/gpg --charset utf-8 --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f" + +# create a pgp/mime encrypted attachment +# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" +set pgp_encrypt_only_command="pgpewrap /usr/bin/gpg --charset utf-8 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f" + +# create a pgp/mime encrypted and signed attachment +# set pgp_encrypt_sign_command="pgpewrap gpg-2comp --passphrase-fd 0 -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" +set pgp_encrypt_sign_command="pgpewrap /usr/bin/gpg --charset utf-8 --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f" + +# import a key into the public key ring +set pgp_import_command="/usr/bin/gpg --no-verbose --import -v %f" + +# export a key from the public key ring +set pgp_export_command="/usr/bin/gpg --no-verbose --export --armor %r" + +# verify a key +set pgp_verify_key_command="/usr/bin/gpg --verbose --batch --fingerprint --check-sigs %r" + +# read in the public key ring +set pgp_list_pubring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-keys %r" + +# read in the secret key ring +set pgp_list_secring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" + +# fetch keys +# set pgp_getkeys_command="pkspxycwrap %r" + +# pattern for good signature - may need to be adapted to locale! + +# set pgp_good_sign="^gpg: Good signature from" + +# OK, here's a version which uses gnupg's message catalog: +# set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`" + +# This version uses --status-fd messages +set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" + @@ -0,0 +1,64 @@ +set my_name = "Daniel Holman" +set editor=`echo \$EDITOR` +set imap_user=coderdan657@gmail.com +set imap_pass=`gpg -dq ~/.passwd` +set folder=imaps://imap.gmail.com +set spoolfile=+INBOX +set postponed=+[Gmail]/Drafts +set trash=+[Gmail]/Trash +set imap_check_subscribed + +set header_cache = "~/.cache/mutt" +set message_cachedir = "~/.cache/mutt" +unset imap_passive +set imap_keepalive = 300 +set mail_check = 120 + +unset record +set smtp_url=smtps://$imap_user:$imap_pass@smtp.gmail.com +set realname=$my_name +set from=$imap_user +set ssl_force_tls = yes +set ssl_starttls + +set pgp_replyencrypt +set pgp_replysign +set pgp_replysignencrypted +set pgp_show_unusable=no +set pgp_verify_sig=yes +set pgp_sign_as=$GPGKEY +source ~/.gpg.rc + +set mailcap_path = ~/.mutt/mailcap +alternative_order text/enriched text/plain text/html text +auto_view text/html + +bind index "^" imap-fetch-mail + +set query_command="goobook query '%s'" +macro index,pager a "<pipe-message>goobook add<return>" "add sender to google contacts" +bind editor <Tab> complete-query + +# -*-muttrc-*- + +# Palette for use with the Linux console. Black background. + +color hdrdefault blue black +color quoted blue black +color signature blue black +color attachment red black +color prompt brightmagenta black +color message brightred black +color error brightred black +color indicator black red +color status brightgreen blue +color tree white black +color normal white black +color markers red black +color search white black +color tilde brightmagenta black +color index blue black ~F +color index red black "~N|~O" + +# color body brightwhite black '\*+[^*]+\*+' +# color body brightwhite black '_+[^_]+_+' diff --git a/.vim/.netrwhist b/.vim/.netrwhist new file mode 100644 index 0000000..8dc3687 --- /dev/null +++ b/.vim/.netrwhist @@ -0,0 +1,3 @@ +let g:netrw_dirhistmax =10 +let g:netrw_dirhist_cnt =1 +let g:netrw_dirhist_1='/home/dsh' diff --git a/.vim/filetype.vim b/.vim/filetype.vim new file mode 100644 index 0000000..763a5fa --- /dev/null +++ b/.vim/filetype.vim @@ -0,0 +1,4 @@ +augroup filetypedetect + " Mail + autocmd BufRead,BufNewFile *mutt-* setfiletype mail +augroup END @@ -0,0 +1,80 @@ +set nocompatible + +" General +set autoread +set hidden +set showmode +set showcmd +set number +set history=1000 +set gcr=a:blinkon0 +set grepprg="grep -nH $*" +let g:tex_flavor = "latex" +set visualbell +set background=dark +set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after +syntax on + +" Turn off swap files +set noswapfile +set nobackup +set nowb + +" Indentation +set autoindent +set smartindent +set smarttab +set shiftwidth=8 +set softtabstop=8 +set tabstop=8 +set expandtab + +noremap p p=`[<C-o> +noremap P P=`[<C-o> + +filetype plugin on +filetype indent on + +set nowrap +set linebreak + +set splitbelow +set splitright + +" Completion +set wildmode=list:longest +set wildmenu +set wildignore=*.o,*.obj,*~ +set wildignore+=vim/backups +set wildignore+=*sass-cache* +set wildignore+=*DS_Store* +set wildignore+=vendor/cache/** +set wildignore+=log/** +set wildignore+=tmp/** +set wildignore+=*.png,*.jpeg,*.gif + +" Scrolling +set scrolloff=8 +set sidescrolloff=15 +set sidescroll=1 + +" Key mapping +no <Up> <Nop> +no <Down> <Nop> +no <Left> <Nop> +no <Right> <Nop> +ino <Up> <Nop> +ino <Down> <Nop> +ino <Left> <Nop> +ino <Right> <Nop> +vno <Up> <Nop> +vno <Down> <Nop> +vno <Left> <Nop> +vno <Right> <Nop> +nnoremap <C-J> <C-W><C-J> +nnoremap <C-K> <C-W><C-K> +nnoremap <C-L> <C-W><C-L> +nnoremap <C-H> <C-W><C-H> + +" Email options +au BufRead /tmp/mutt-* set tw=72 @@ -0,0 +1,45 @@ +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +setopt appendhistory extendedglob notify +unsetopt autocd beep nomatch +bindkey -v +# End of lines configured by zsh-newuser-install +# The following lines were added by compinstall +zstyle :compinstall filename '/home/dsh/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall + +PROMPT="$ " + +source /usr/share/doc/pkgfile/command-not-found.zsh +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh + +bindkey -M vicmd 'k' history-substring-search-up +bindkey -M vicmd 'j' history-substring-search-down + +alias ls="ls --color=auto" +alias pacin="pacaur -S" +alias pacr="pacaur -Rs" +alias pacup="pacaur -Syu" +alias pacsearch="pacaur -Ss" + +export PATH="$PATH:/home/dsh/bin" +export EDITOR="vim" +export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 + +man() { + env \ + LESS_TERMCAP_mb=$'\e[01;31m' \ + LESS_TERMCAP_md=$'\e[01;31m' \ + LESS_TERMCAP_me=$'\e[0m' \ + LESS_TERMCAP_se=$'\e[0m' \ + LESS_TERMCAP_so=$'\e[01;44;33m' \ + LESS_TERMCAP_ue=$'\e[0m' \ + LESS_TERMCAP_us=$'\e[01;32m' \ + man "$@" +} |