50 lines
1.4 KiB
Bash
Executable file
50 lines
1.4 KiB
Bash
Executable file
#!/usr/bin/env zsh
|
|
# __ _ _ _
|
|
# / _| (_|_) |
|
|
# | |_ _ _ _ _| |_ ___ _ _
|
|
# | _| | | | | | __/ __| | | |
|
|
# | | | |_| | | | |_\__ \ |_| |
|
|
# |_| \__,_| |_|\__|___/\__,_|
|
|
# _/ |
|
|
# |__/
|
|
#
|
|
# author: Daniel Sommer <daniel.sommer@velvettear.de>
|
|
# license: MIT
|
|
|
|
# ----- general aliases ----- #
|
|
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 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 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'
|
|
|
|
# ----- non-ssh aliases ----- #
|
|
if [[ -z "$SSH_TTY" ]]; then
|
|
alias ssh='kitty +kitten ssh'
|
|
fi
|
|
|
|
# ----- pfetch ----- #
|
|
export PF_INFO="ascii title host kernel memory wm shell editor pkgs uptime palette"
|
|
|
|
# ----- kde ----- #
|
|
[[ -z "${DISPLAY}" ]] && [[ "${XDG_VTNR}" -eq 1 ]] && exec /usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland &> /dev/null
|