Added zsh config.

This commit is contained in:
Salyrus
2021-12-14 10:20:27 +01:00
parent f097f650be
commit 0388809125
4 changed files with 1820 additions and 3 deletions

View File

@ -31,7 +31,7 @@ font-1 = MaterialIcons;3
font-2 = coins;3
modules-left = bspwm
modules-right = xbps-updates pulseaudio-control brightnessctl wireless-network battery date
modules-right = xbps-updates pulseaudio-control brightnessctl wlan wireless-network battery date
modules-center = crypto
fixed-center = true
@ -138,6 +138,13 @@ type = internal/date
date = %H:%M
; full date: %Y-%m-%d %H:%M:%S
[module/wlan]
type = internal/network
interface = enp7s0
interval = 5.0
format-connected =  eth
[module/wireless-network]
type = internal/network
interface = wlp8s0
@ -146,8 +153,7 @@ ping-interval = 10
label-connected = %essid%
format-connected = <ramp-signal><label-connected>
label-disconnected = 
label-disconnected-foreground = #66
label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 

1775
zsh/.zcompdump Normal file

File diff suppressed because it is too large Load Diff

35
zsh/.zshrc Normal file
View 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

Submodule zsh/zsh-syntax-highlighting added at c7caf57ca8