.dots/zsh/zshrc

64 lines
1.6 KiB
Bash
Executable file

#!/usr/bin/env zsh
# _
# | |
# _______| |__ _ __ ___
# |_ / __| '_ \| '__/ __|
# _ / /\__ \ | | | | | (__
# (_)___|___/_| |_|_| \___|
#
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# license: MIT
# ----- keybindings ----- #
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
# ----- history ----- #
setopt SHARE_HISTORY
# ----- aliases ----- #
alias c='clear'
alias ..='cd ..'
alias whereami='realpath .'
alias rmr='rm -r'
alias rmrf='rm -rf'
alias cpr='cp -R'
alias cprf='cp -Rf'
alias mkdirp='mkdir -p'
alias vi='nvim'
alias vim='nvim'
alias eza='eza --icons --group --time-style long-iso --octal-permissions --git'
alias ls='eza'
alias ll='eza --long'
alias la='eza --all'
alias lla='eza --long --all'
alias pacsearch='pacman -Q | grep '
alias df='duf'
alias du='gdu'
alias grep='rg -P'
alias grepa='rg -P --hidden'
alias find='fd'
alias findf='fd --type file'
alias findd='fd --type directory'
alias findl='fd --type symlink'
alias finds='fd --type socket'
alias findp='fd --type pipe'
alias findx='fd --type executable'
alias finde='fd --type empty'
alias diff='diff --color=auto'
alias bat='bat --style header-filename,header-filesize,grid,snip,changes,numbers'
alias cat='bat'
alias batp='bat --style plain'
alias catp='batp'
alias pfetch='printf "\n" && pfetch'
alias fetch='pfetch'
alias stats='pfetch'
alias icat='kitten icat'
alias ssh='kitty +kitten ssh'
alias update='$HOME/.dots/scripts/update/update.sh'
# ----- conf.d ----- #
"$HOME/.dots/zsh/conf.d/$(hostname)" &> /dev/null
# ----- root ----- #
[[ "$EUID" != "0" ]] && return