.dots/zsh/zshrc

41 lines
901 B
Bash
Raw Normal View History

2024-09-26 11:05:50 +02:00
#!/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 .'
2024-09-26 12:18:47 +02:00
alias ll='ls -l'
alias la='ls -a'
alias lla='ls -la'
2024-09-26 11:05:50 +02:00
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 diff='diff --color=auto'
alias update='$HOME/.dots/scripts/update/update.sh'
# ----- conf.d ----- #
2024-09-26 12:18:47 +02:00
. "$HOME/.dots/zsh/conf.d/$(hostname)" &> /dev/null
2024-09-26 11:05:50 +02:00
# ----- root ----- #
[[ "$EUID" != "0" ]] && return