diff --git a/zsh/conf.d/docker b/zsh/conf.d/docker new file mode 100755 index 0000000..6f3af51 --- /dev/null +++ b/zsh/conf.d/docker @@ -0,0 +1,35 @@ +#!/usr/bin/env zsh +# _ _ +# | | | | +# __| | ___ ___| | _____ _ __ +# / _` |/ _ \ / __| |/ / _ \ '__| +# | (_| | (_) | (__| < __/ | +# \__,_|\___/ \___|_|\_\___|_| +# +# author: Daniel Sommer +# license: MIT + +# ----- 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 icat='kitten icat' +alias ssh='kitty +kitten ssh' diff --git a/zsh/conf.d/fujitsu b/zsh/conf.d/fujitsu index 2508a31..113de9f 100755 --- a/zsh/conf.d/fujitsu +++ b/zsh/conf.d/fujitsu @@ -39,5 +39,8 @@ alias stats='pfetch' alias icat='kitten icat' alias ssh='kitty +kitten ssh' +# ----- pfetch ----- # +export PF_INFO="ascii title host kernel memory wm shell editor pkgs uptime palette" + # ----- kde ----- # -[[ -z "${DISPLAY}" ]] && [[ "${XDG_VTNR}" -eq 1 ]] && echo "EXECUTING PLASMA!" >> /tmp/derp && exec /usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland &> /dev/null +[[ -z "${DISPLAY}" ]] && [[ "${XDG_VTNR}" -eq 1 ]] && exec /usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland &> /dev/null diff --git a/zsh/conf.d/n97 b/zsh/conf.d/n97 new file mode 100755 index 0000000..2025b36 --- /dev/null +++ b/zsh/conf.d/n97 @@ -0,0 +1,44 @@ +#!/usr/bin/env zsh +# _____ ______ +# | _ ||___ / +# _ __ | |_| | / / +# | '_ \ \____ | / / +# | | | |.___/ /./ / +# |_| |_|\____/ \_/ +# +# author: Daniel Sommer +# license: MIT + +# ----- 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' +alias ssh='kitty +kitten ssh' + +# ----- 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 diff --git a/zsh/zprofile b/zsh/zprofile index 17deb8e..44fb4b8 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -31,6 +31,3 @@ export SAVEHIST="10000" export HISTSIZE="10000" export HISTTIMEFORMAT="%d.%m.%Y %H:%M:%S" export HISTCONTROL="ignoredups" - -# ----- pfetch ----- # -export PF_INFO="ascii title host kernel memory wm shell editor pkgs uptime palette" diff --git a/zsh/zshrc b/zsh/zshrc index 5e729b1..a7173a8 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -20,6 +20,9 @@ setopt SHARE_HISTORY alias c='clear' alias ..='cd ..' alias whereami='realpath .' +alias ll='ls -l' +alias la='ls -a' +alias lla='ls -la' alias rmr='rm -r' alias rmrf='rm -rf' alias cpr='cp -R' @@ -31,7 +34,7 @@ alias diff='diff --color=auto' alias update='$HOME/.dots/scripts/update/update.sh' # ----- conf.d ----- # -"$HOME/.dots/zsh/conf.d/$(hostname)" &> /dev/null +. "$HOME/.dots/zsh/conf.d/$(hostname)" &> /dev/null # ----- root ----- # [[ "$EUID" != "0" ]] && return