diff options
author | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-02 20:06:50 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-02 20:06:50 +0300 |
commit | 869c4b12288063c4ffd06563276b2b0d012a9f48 (patch) | |
tree | 37ba71ad32f0cdfe01a76fe2b101075468f59942 /zsh/zshrc | |
parent | 5c26df06419ccffc860cd7cd45e275a00cfc20d8 (diff) |
Zsh magix
Diffstat (limited to 'zsh/zshrc')
-rw-r--r-- | zsh/zshrc | 37 |
1 files changed, 22 insertions, 15 deletions
@@ -1,17 +1,8 @@ -# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. -# Initialization code that may require console input (password prompts, [y/n] -# confirmations, etc.) must go above this block; everything else may go below. 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 - -# Exports -export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/go/bin:$HOME/.emacs.d/bin:$PATH -export EDITOR="micro" - -#export SSH_AUTH_SOCK=$HOME/.ssh/ssh-agent.socket -#ssh-add -l >/dev/null || alias ssh='ssh-add -l >/dev/null || SSH_AUTH_SOCK=$HOME/.ssh/ssh-agent.socket ssh-add -s /usr/lib/x86_64-linux-gnu/libykcs11.so && unalias ssh; ssh' - +source ~/.config/zsh/p10k.zsh +source ~/.config/zsh/p10k/powerlevel10k.zsh-theme source ~/.config/zsh/antigen.zsh antigen bundle zsh-users/zsh-syntax-highlighting @@ -21,6 +12,12 @@ antigen bundle zsh-users/zsh-completions antigen apply +# Exports + +export PATH=$HOME/.local/bin:/usr/local/bin:$HOME/go/bin:$PATH +export EDITOR="micro" +export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock + # Aliases alias ls="ls -F" alias l="ls" @@ -52,11 +49,21 @@ setopt histignorespace # Don't save com zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc) -zstyle ':completion:*' rehash true # automatically find new executables in path +zstyle ':completion:*' rehash true # automatically find new executables in path # Speed up completions zstyle ':completion:*' accept-exact '*(N)' zstyle ':completion:*' use-cache on zstyle ':completion:*' cache-path ~/.zsh/cache + +zstyle ':completion:*:processes' command 'ps -ax' +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32' +zstyle ':completion:*:*:kill:*' menu yes select +zstyle ':completion:*:kill:*' force-list always + +zstyle ':completion:*:processes-names' command 'ps -e -o comm=' +zstyle ':completion:*:*:killall:*' menu yes select +zstyle ':completion:*:killall:*' force-list always + HISTFILE=~/.zsh_history HISTSIZE=100000 SAVEHIST=100000 @@ -66,6 +73,9 @@ WORDCHARS=${WORDCHARS//\/[&.;]} # Don't consider autoload -U compinit colors zcalc compinit -d + +source ~/.config/zsh/conf.d/*.zsh + colors # Color man pages @@ -119,6 +129,3 @@ bindkey '^[[Z' undo # Shift+tab undo # ctrl + space accept suggestion bindkey '^ ' autosuggest-accept - -source ~/.config/zsh/p10k.zsh -source ~/.config/zsh/p10k/powerlevel10k.zsh-theme |