-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
executable file
·81 lines (65 loc) · 2.32 KB
/
.zshrc
1
2
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env zsh
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=1000
setopt autocd extendedglob
bindkey -v
# End of lines configured by zsh-newuser-install
# keyboard layout: use as a base the intl-edition of us-querty
# map the caps button to the escape key
# map ALT+oua to german umlauts
# direct err to null to get rid of warnings of missing keycodes
xkbcomp -xkb ~/.xkbmap_custom $DISPLAY 2>/dev/null
# Check if Caps Lock is on, and if it is, use xdotool to disable it
test -n "$DISPLAY" && xset q | grep -q Caps\ Lock:\ \ \ on && xdotool key Caps_Lock
# set the typematic delay
# xset r rate _delay_ _rate_
test -n "$DISPLAY" && xset r rate 140 80
# The following lines were added by compinstall
zstyle :compinstall filename '/home/joel/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Z (as cd)
eval "$(zoxide init --cmd cd zsh)"
# ZMV is a bulk rename tool
autoload zmv
# edit the current command line in $EDITOR
autoload -z edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
ZSH_THEME="ys"
CASE_SENSITIVE="true"
# enable command auto-correction.
#ENABLE_CORRECTION="true"
# then set the LScolors
# eval $(dircolors ~/.config/dircolors.conf)
# display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# plugins to load
# Standard plugins ~/.oh-my-zsh/plugins/*
# Custom plugins ~/.oh-my-zsh/custom/plugins/
zstyle :omz:plugins:ssh-agent identities id_rsa bitbucket/id_rsa uoa/id_ed25519
plugins=(
gitfast
ssh-agent
)
test -n "${ZSH}" && source $ZSH/oh-my-zsh.sh
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
source ~/.bash_aliases
#set vi mode for the shell
set -o vi
#set the ^R for recursive search althouth we have the vi-mode in the shell
bindkey '^R' history-incremental-search-backward
# add bash-insulter
if [ -f /etc/bash.command-not-found ]; then
. /etc/bash.command-not-found
fi