1
0
Fork 0

Update .zshrc

This commit is contained in:
MGislv 2021-11-04 21:33:52 +00:00
parent 9d78d6025f
commit 6001c92f38
1 changed files with 16 additions and 16 deletions

32
.zshrc
View File

@ -15,7 +15,7 @@ CORRECT_IGNORE="[_|.]*"
# Autocompletion cache
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$HOME/.cache/zsh"
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh"
# Double TAB arrow-key driven selection
zstyle ':completion:*' menu select
@ -27,8 +27,8 @@ zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*' squeeze-slashes true
# Plugins
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
#source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# History
HISTFILE="$HOME/.zsh/history"
@ -57,7 +57,18 @@ alias vim=nvim
alias vi=nvim
alias cat='bat -p'
alias cx=clear
alias mpv-a='mpv --no-video'
alias mpva='mpv --no-video'
alias gpgsim='gpg -c --no-symkey-cache --cipher-algo AES256 --digest-algo SHA512'
alias updm='sudo reflector --ipv4 --latest 40 --sort rate --save /etc/pacman.d/mirrorlist'
alias clpkc='paccache -rk1 && paccache -ruk0 && pacman -Qtdq | sudo pacman -Rns -'
alias noscreenblanking='xset s off -dpms'
alias youlistformat='yt-dlp --list-formats'
alias gc='gcc -lm -O2 -g -Wall -Wextra'
alias g+='gcc -lm -O2 -g -Wall -Wextra'
alias redscreen='redshift -P -O 4000'
alias updchroot='arch-nspawn $CHROOT/root pacman -Syu'
alias chrooted='CHROOT=$HOME/chroot'
alias alexf='axel -4kN'
# just in case
alias cp='cp -i'
@ -69,18 +80,7 @@ alias untar='tar -xvf'
alias tarxzu="tar --owner=root --group=root --use-compress-program='xz -9eT0' -cvf"
alias tarlzu='tarlz --anonymous -9vcf'
alias gpgsim='gpg -c --no-symkey-cache --cipher-algo AES256 --digest-algo SHA512'
alias updm='sudo reflector --ipv4 --latest 40 --sort rate --save /etc/pacman.d/mirrorlist'
alias clpkc='paccache -rk1 && paccache -ruk0 && pacman -Qtdq | sudo pacman -Rns -'
alias noscreenblanking='xset s off -dpms'
alias youlistformat='youtube-dl --list-formats'
alias gc='gcc -lm -O2 -g -Wall -Wextra'
alias g+='gcc -lm -O2 -g -Wall -Wextra'
alias redscreen='redshift -P -O 4000'
alias updchroot='arch-nspawn $CHROOT/root pacman -Syu'
alias chrooted='CHROOT=$HOME/chroot'
# export
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp'
PATH="$HOME/bin/:$PATH"
export LESSHISTFILE="$HOME"/.cache/less/history
export LESSHISTFILE="$XDG_CACHE_HOME/less/history"