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