Unnamed Fossil Project

Check-in [7e6e7f7cfb]
Login

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

Overview
Comment:shell: Improve zshrc functionality.
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:7e6e7f7cfb72c622cf17e9b565a3d5273a02c6d0
User & Date: mastersrp 2016-01-08 09:56:53
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to shell/.zshrc.

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30




31
32
33
34
35
36
37
..
51
52
53
54
55
56
57
58
59







#
# Authors:
#   Sorin Ionescu <sorin.ionescu@gmail.com>
#

export EDITOR="vim"

if [[ ! -d "$HOME/.zprezto/" ]]; then
	git clone --recursive git://github.com/kishansundar/zprezto $HOME/.zprezto
	setopt EXTENDED_GLOB
	for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
		ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" 2>/dev/null
	done
fi

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
  source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi

SVDIR=$HOME/service

LANG=da_DK.UTF-8
LC_ALL=da_DK.UTF-8

if [ -d "$HOME/.local/bin" ]; then
	path[1,0]=$HOME/.local/bin
fi





if [ -d "$HOME/.graveyard" ]; then
	for grave in $(ls -a "$HOME/.graveyard"); do
		[[ "$grave" = "." ]] && continue
		[[ "$grave" = ".." ]] && continue
		KEY="${grave}.key"
		[[ -f "$HOME/.graveyard/$grave.key" ]] || continue
................................................................................
		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














|
|
<
<
<
<



|
|










>
>
>
>







 







<

>
>
>
>
>
>
>
3
4
5
6
7
8
9
10
11




12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
..
51
52
53
54
55
56
57

58
59
60
61
62
63
64
65
#
# Authors:
#   Sorin Ionescu <sorin.ionescu@gmail.com>
#

export EDITOR="vim"

if [[ ! -d "$HOME/.antigen" ]]; then
	git clone --recursive git://github.com/zsh-users/antigen.git $HOME/.antigen




fi

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.antigen/antigen.zsh" ]]; then
  source "${ZDOTDIR:-$HOME}/.antigen/antigen.zsh"
fi

SVDIR=$HOME/service

LANG=da_DK.UTF-8
LC_ALL=da_DK.UTF-8

if [ -d "$HOME/.local/bin" ]; then
	path[1,0]=$HOME/.local/bin
fi

if [ -f "$HOME/perl5/bin/cpanm" ]; then
	eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
fi

if [ -d "$HOME/.graveyard" ]; then
	for grave in $(ls -a "$HOME/.graveyard"); do
		[[ "$grave" = "." ]] && continue
		[[ "$grave" = ".." ]] && continue
		KEY="${grave}.key"
		[[ -f "$HOME/.graveyard/$grave.key" ]] || continue
................................................................................
		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

antigen bundle zsh-users/zsh-syntax-highlighting
antigen use oh-my-zsh
antigen bundle scw
antigen bundle sudo
antigen theme candy
antigen apply