rc

Edit standard EDITOR setting for sessions

Author
Maarten 'Vngngdn' Vangeneugden
Date
Feb. 20, 2018, 10:16 p.m.
Hash
3726044bfe7cecff3256620623bc4171819f179a
Parent
b47663138a42d1dc5068bcfd6051a3592802b55e
Modified file
.zshrc

.zshrc

1 addition and 1 deletion.

View changes Hide changes
1
1
HISTFILE=~/.histfile
2
2
HISTSIZE=1000
3
3
SAVEHIST=1000
4
4
bindkey -e
5
5
# End of lines configured by zsh-newuser-install
6
6
# The following lines were added by compinstall
7
7
zstyle :compinstall filename $HOME+'/.zshrc'
8
8
9
9
autoload -Uz compinit
10
10
compinit
11
11
# End of lines added by compinstall
12
12
13
13
#By myself; these will explicitely tell ZSH to autoload this file.
14
14
autoload -U promptinit
15
15
promptinit
16
16
17
17
#This is for colors:
18
18
autoload -U colors && colors
19
19
20
20
#This is for the Powerline font:
21
21
# Eum, this doesn't work. commented out until further notice.
22
22
#. /usr/share/zsh/site-contrib-powerline.zsh
23
23
24
24
# Ignore useless files and directories:
25
25
zstyle ':completion:*' ignored-patterns '*?.pyc' '__pycache__' '*?.class' 'Cargo.lock' '*.pdf'
26
26
27
27
# A list of aliases:
28
28
29
29
alias install="pacaur -S"  # Install a package.
30
30
alias delete="pacaur -Rscu"  # Delete a package and orphan dependencies/packages.
31
31
# Opens the GNU Emacs client directly in the terminal like with Vim
32
32
alias em="emacsclient -nw -s gnuemacs"
33
33
34
34
# Set editor correctly
35
35
export EDITOR=nvim
36
-
+
36
37
37
# Settings that allow for my SSH keys to work through all terminals.
38
38
# (Verbatim copied from Arch Wiki)
39
39
if ! pgrep -u $USER ssh-agent > /dev/null; then
40
40
    ssh-agent > ~/.ssh-agent-thing
41
41
fi
42
42
if [[ "$SSH_AGENT_PID" == "" ]]; then
43
43
    eval $(<~/.ssh-agent-thing)
44
44
fi
45
45
ssh-add -l >/dev/null || alias ssh='ssh-add -l >/dev/null || ssh-add && unalias ssh; ssh'
46
46