fix files for different hosts

This commit is contained in:
Daniel Sommer 2024-09-26 12:18:47 +02:00
parent b99c26fbfa
commit 26c70398ef
5 changed files with 87 additions and 5 deletions

35
zsh/conf.d/docker Executable file
View file

@ -0,0 +1,35 @@
#!/usr/bin/env zsh
# _ _
# | | | |
# __| | ___ ___| | _____ _ __
# / _` |/ _ \ / __| |/ / _ \ '__|
# | (_| | (_) | (__| < __/ |
# \__,_|\___/ \___|_|\_\___|_|
#
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# 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'

View file

@ -39,5 +39,8 @@ alias stats='pfetch'
alias icat='kitten icat' alias icat='kitten icat'
alias ssh='kitty +kitten ssh' alias ssh='kitty +kitten ssh'
# ----- pfetch ----- #
export PF_INFO="ascii title host kernel memory wm shell editor pkgs uptime palette"
# ----- kde ----- # # ----- 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

44
zsh/conf.d/n97 Executable file
View file

@ -0,0 +1,44 @@
#!/usr/bin/env zsh
# _____ ______
# | _ ||___ /
# _ __ | |_| | / /
# | '_ \ \____ | / /
# | | | |.___/ /./ /
# |_| |_|\____/ \_/
#
# author: Daniel Sommer <daniel.sommer@velvettear.de>
# 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

View file

@ -31,6 +31,3 @@ export SAVEHIST="10000"
export HISTSIZE="10000" export HISTSIZE="10000"
export HISTTIMEFORMAT="%d.%m.%Y %H:%M:%S" export HISTTIMEFORMAT="%d.%m.%Y %H:%M:%S"
export HISTCONTROL="ignoredups" export HISTCONTROL="ignoredups"
# ----- pfetch ----- #
export PF_INFO="ascii title host kernel memory wm shell editor pkgs uptime palette"

View file

@ -20,6 +20,9 @@ setopt SHARE_HISTORY
alias c='clear' alias c='clear'
alias ..='cd ..' alias ..='cd ..'
alias whereami='realpath .' alias whereami='realpath .'
alias ll='ls -l'
alias la='ls -a'
alias lla='ls -la'
alias rmr='rm -r' alias rmr='rm -r'
alias rmrf='rm -rf' alias rmrf='rm -rf'
alias cpr='cp -R' alias cpr='cp -R'
@ -31,7 +34,7 @@ alias diff='diff --color=auto'
alias update='$HOME/.dots/scripts/update/update.sh' alias update='$HOME/.dots/scripts/update/update.sh'
# ----- conf.d ----- # # ----- conf.d ----- #
"$HOME/.dots/zsh/conf.d/$(hostname)" &> /dev/null . "$HOME/.dots/zsh/conf.d/$(hostname)" &> /dev/null
# ----- root ----- # # ----- root ----- #
[[ "$EUID" != "0" ]] && return [[ "$EUID" != "0" ]] && return