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