|
|
- eval "$(direnv hook zsh)" >> /tmp/direnv
- paleofetch
- if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
- source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
- fi
-
- source ~/.profile
- # Created by kuro for 5.8
- source <(antibody init)
-
- HISTFILE=~/.zsh_history
- HISTSIZE=100000
- SAVEHIST=100000
- setopt appendhistory
-
- #Autocompletion
- autoload -Uz compinit
- compinit
-
- antibody bundle < ~/.config/antibody/zsh_plugins.txt
-
- [[ ! -f ~/.config/antibody/p10k.zsh ]] || source ~/.config/antibody/p10k.zsh
-
- bindkey "^[[H" beginning-of-line
- bindkey "^[[F" end-of-line
- bindkey "^[[3~" delete-char
-
- bindkey "^[[1;5C" forward-word
- bindkey "^[[1;5D" backward-word
-
- fpath=(~/.completions $fpath)
- autoload -Uz compinit && compinit
-
- source ~/.aliases
- if [ -f ~/.local_aliases ]; then
- source ~/.local_aliases
- fi
-
- if [ -f ~/.zsh_secret ]; then
- source ~/.zsh_secret
- fi
- source ~/.cmds
-
- [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
-
- export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241,bold'
- export KEYTIMEOUT=5
-
- # added by travis gem
- [ ! -s /home/yigit/.travis/travis.sh ] || source /home/yigit/.travis/travis.sh
-
-
- function x11-clip-wrap-widgets() {
- local copy_or_paste=$1
- shift
-
- for widget in $@; do
- if [[ $copy_or_paste == "copy" ]]; then
- eval "
- function _x11-clip-wrapped-$widget() {
- zle .$widget
- xclip -in -selection clipboard <<<\$CUTBUFFER
- }
- "
- else
- eval "
- function _x11-clip-wrapped-$widget() {
- CUTBUFFER=\$(xclip -out -selection clipboard)
- zle .$widget
- }
- "
- fi
-
- zle -N $widget _x11-clip-wrapped-$widget
- done
- }
-
- # Better completion
- zstyle ':completion:*' matcher-list '' \
- 'm:{a-z\-}={A-Z\_}' \
- 'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \
- 'r:|?=** m:{a-z\-}={A-Z\_}'
-
- local copy_widgets=(
- vi-yank vi-yank-eol vi-delete vi-backward-kill-word vi-change-whole-line
- )
- local paste_widgets=(
- vi-put-{before,after}
- )
-
- # Use X11 Clipboard
- x11-clip-wrap-widgets copy $copy_widgets
- x11-clip-wrap-widgets paste $paste_widgets
|