Unnamed Fossil Project

Check-in [c402730ca6]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:shell: Add perl one-liner for GPG loading. vim: Add support for neovim.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c402730ca67c8efcb5aca3097b2a7c119dbdd0b5
User & Date: necrophcodr 2016-01-01 16:29:17
Context
2016-01-08
09:56
shell: Improve zshrc functionality. Leaf check-in: 7e6e7f7cfb user: mastersrp tags: trunk
2016-01-01
16:29
shell: Add perl one-liner for GPG loading. vim: Add support for neovim. check-in: c402730ca6 user: necrophcodr tags: trunk
2015-12-16
13:15
config: Improve and change awesome wm theme. check-in: ee4ee1f686 user: mastersrp tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to shell/.zshrc.

46
47
48
49
50
51
52

53
54
55
56
57
58

if [ "x$(tty | grep -E '\/dev\/tty[0-9]')" = "x" ]; then
	# This is a terminal emulator, not a virtual terminal.
	if [ "$(which keychain 2>/dev/null >/dev/null; echo $?)" = "0" ]; then
		GPG_TTY=`tty`
		export GPG_TTY
		SSH_PRIVKEYS=$(ls ~/.ssh/ | grep -E '^id_.*[^.pub]$')

		eval `keychain --eval --agents gpg,ssh ${SSH_PRIVKEYS} FA697FA1`
	fi
fi


export SVDIR LANG LC_ALL







>
|





46
47
48
49
50
51
52
53
54
55
56
57
58
59

if [ "x$(tty | grep -E '\/dev\/tty[0-9]')" = "x" ]; then
	# This is a terminal emulator, not a virtual terminal.
	if [ "$(which keychain 2>/dev/null >/dev/null; echo $?)" = "0" ]; then
		GPG_TTY=`tty`
		export GPG_TTY
		SSH_PRIVKEYS=$(ls ~/.ssh/ | grep -E '^id_.*[^.pub]$')
		GPG_PRIVKEYS=$(gpg --list-secret-keys | perl -e 'while(<STDIN>) { m/^sec[\s]+.+\/([^\s]+).+$/g; next unless pos; print "$1\n" if $1; }')
		eval `keychain --eval --agents gpg,ssh ${SSH_PRIVKEYS} ${GPG_PRIVKEYS}`
	fi
fi


export SVDIR LANG LC_ALL

Changes to vim/.vimrc.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
..
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
if has('vim_starting')
	set nocompatible
	set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

if !has('gui_running')
	set t_Co=256
	set mouse=a
end

call plug#begin('~/.vim/plugged')

Plug 'git://github.com/Shougo/vimproc.vim'
Plug 'git://github.com/itchyny/lightline.vim'
Plug 'git://github.com/myusuf3/numbers.vim'
................................................................................

" Visual settings
syntax on
filetype plugin indent on
set number
set background=dark
colorscheme desert
"colorscheme desert
let g:lightline = {
	\ 'colorscheme': 'jellybeans'
	\ }

" Set indentation to two (and with tabs)
set tabstop=2
set softtabstop=2





|
|
<







 







<







1
2
3
4
5
6
7

8
9
10
11
12
13
14
..
25
26
27
28
29
30
31

32
33
34
35
36
37
38
if has('vim_starting')
	set nocompatible
	set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

if has('nvim')
	tnoremap <Esc> <C-\><C-n>

end

call plug#begin('~/.vim/plugged')

Plug 'git://github.com/Shougo/vimproc.vim'
Plug 'git://github.com/itchyny/lightline.vim'
Plug 'git://github.com/myusuf3/numbers.vim'
................................................................................

" Visual settings
syntax on
filetype plugin indent on
set number
set background=dark
colorscheme desert

let g:lightline = {
	\ 'colorscheme': 'jellybeans'
	\ }

" Set indentation to two (and with tabs)
set tabstop=2
set softtabstop=2