Zsh magix
This commit is contained in:
parent
5c26df0641
commit
869c4b1228
5 changed files with 378 additions and 132 deletions
37
zsh/zshrc
37
zsh/zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue