Added zsh config.
This commit is contained in:
1775
zsh/.zcompdump
Normal file
1775
zsh/.zcompdump
Normal file
File diff suppressed because it is too large
Load Diff
35
zsh/.zshrc
Normal file
35
zsh/.zshrc
Normal file
@ -0,0 +1,35 @@
|
||||
# Pim's zsh config.
|
||||
|
||||
PS1="%F{green}%~%f %F{white}»%f "
|
||||
|
||||
HISTFILE=~/.cache/zsh/histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=2500
|
||||
|
||||
zstyle :compinstall filename '/home/pim/.zshrc'
|
||||
|
||||
# Load autocompletion & include hidden dotfiles.
|
||||
zstyle ':completion:*' menu select
|
||||
zmodload zsh/complist
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
_comp_options+=(globdots)
|
||||
|
||||
# Vi mode
|
||||
bindkey -v
|
||||
|
||||
# Vi keys for the tab completion menu.
|
||||
bindkey -M menuselect 'h' vi-backward-char
|
||||
bindkey -M menuselect 'k' vi-up-line-or-history
|
||||
bindkey -M menuselect 'l' vi-forward-char
|
||||
bindkey -M menuselect 'j' vi-down-line-or-history
|
||||
bindkey -v '^?' backward-delete-char
|
||||
|
||||
# Aliases
|
||||
alias ls='ls --color=auto'
|
||||
alias shutdown='sudo shutdown -h now'
|
||||
alias sleep='betterlockscreen -s -l dim && sudo zzz'
|
||||
alias reboot='sudo reboot'
|
||||
|
||||
# Extensions
|
||||
source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
1
zsh/zsh-syntax-highlighting
Submodule
1
zsh/zsh-syntax-highlighting
Submodule
Submodule zsh/zsh-syntax-highlighting added at c7caf57ca8
Reference in New Issue
Block a user