dotfiles/zshrc
2024-06-15 19:03:26 +03:00

43 lines
1.4 KiB
Bash
Executable File

#Export basic stuff
export TERM="xterm-256color"
export HISTORY_IGNORE="(ls|cd|pwd|exit|sudo reboot|history|cd -|cd ..)"
export EDITOR="nvim"
export VISUAL="nvim"
export MANPAGER='nvim +Man!'
export MANWIDTH=999
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=20000
#Export language variables
export LANG="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
#Export General
export KUBE_EDITOR=nvim
export DOTNET_CLI_TELEMETRY_OPTOUT="1"
#Aliases
alias vim='nvim'
alias ls='eza -al --color=always --group-directories-first' # basic
alias la='eza -a --color=always --group-directories-first' # all files and dirs
alias ll='eza -l --color=always --group-directories-first' # long format
alias lt='eza -aT --color=always --group-directories-first' # tree listing
alias pacue='sudo pacman -Syyu' # Refresh pkglist & update standard pkgs
alias parue='paru -Sua --noconfirm' # update only AUR pkgs (paru)
alias orphan='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist" # get fastest mirror
alias jctl="journalctl -p 3 -xb" # get error messages from journalctl
#PATH
if [ -d "$HOME/bin" ] ;
then PATH="$HOME/bin:$PATH"
fi
if [ -d "$HOME/.local/bin" ] ;
then PATH="$HOME/.local/bin:$PATH"
fi
eval "$(starship init zsh)"