37 lines
846 B
Bash
Executable file
37 lines
846 B
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 diff='diff --color=auto'
|
|
alias update='$HOME/.dots/scripts/update/update.sh'
|
|
|
|
# ----- conf.d ----- #
|
|
"$HOME/.dots/zsh/conf.d/$(hostname)" &> /dev/null
|
|
|
|
# ----- root ----- #
|
|
[[ "$EUID" != "0" ]] && return
|