summaryrefslogtreecommitdiff
path: root/.zshrc
blob: bc90c2f908de98c931cda5f9ff043204805cecec (plain)
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
# Created by gogo for 5.8

# Profiling
#zmodload zsh/zprof
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
	export XDG_CURRENT_DESKTOP=sway
    dbus-run-session sway
fi

## Use vim mode
bindkey -v
# Yank to the system clipboard
function vi-yank-xclip {
	zle vi-yank
	echo "$CUTBUFFER" | xsel -i -b
}

zle -N vi-yank-xclip
bindkey -M vicmd 'y' vi-yank-xclip
export KEYTIMEOUT=1

## Source other configs
### key_bindings should be before completion due to complist
source $HOME/.config/zsh/key_bindings.zsh
source $HOME/.config/zsh/completion.zsh
source $HOME/.config/zsh/prompt.zsh
source $HOME/.config/zsh/history_search.zsh
source $HOME/.config/zsh/aliases.zsh
source $HOME/.config/zsh/help_command.zsh

# Profiling
#zprof
#time zsh -i -c exit