From d6169ea75ad6120b9bcb73c0cd9050bd25b768ab Mon Sep 17 00:00:00 2001 From: Lockszmith Date: Mon, 30 May 2022 20:25:05 -0400 Subject: [PATCH] Added apt check and fix code + zfs code --- _home/.chezmoiignore | 2 ++ _home/bin/executable_fix-apt.sh | 3 +++ _home/bin/executable_sz-doctor.sh | 2 ++ _home/dot_sz.shrc.d/31_zfs | 3 +++ _home/dot_zshrc | 14 ++++++++++++++ _home/private_dot_ssh/authorized_keys.template | 8 ++++++++ 6 files changed, 32 insertions(+) create mode 100644 _home/bin/executable_fix-apt.sh create mode 100644 _home/dot_sz.shrc.d/31_zfs create mode 100644 _home/dot_zshrc create mode 100644 _home/private_dot_ssh/authorized_keys.template diff --git a/_home/.chezmoiignore b/_home/.chezmoiignore index f10e2a6..1d45812 100644 --- a/_home/.chezmoiignore +++ b/_home/.chezmoiignore @@ -1 +1,3 @@ .local/share/fonts/**/.uuid +.ssh/* +~.ssh/authorized_keys.template diff --git a/_home/bin/executable_fix-apt.sh b/_home/bin/executable_fix-apt.sh new file mode 100644 index 0000000..8266967 --- /dev/null +++ b/_home/bin/executable_fix-apt.sh @@ -0,0 +1,3 @@ +#! /usr/bin/bash + +sudo chmod -v +x /usr/bin/apt* diff --git a/_home/bin/executable_sz-doctor.sh b/_home/bin/executable_sz-doctor.sh index 24dff8f..28d9822 100644 --- a/_home/bin/executable_sz-doctor.sh +++ b/_home/bin/executable_sz-doctor.sh @@ -22,6 +22,8 @@ echo "editors found:" update-alternatives --query editor | grep Alternative: | cut -d: -f2 echo "" +print-result 'Executable `apt`' $([[ -e $(type -fP apt) ]] && [[ -x $(type -fP apt | head -1) ]] && echo 'Found' || echo 'NOT found' ) + check-exist "Byobu" "/usr/bin/byobu-launch" check-exist "oh-my-posh" check-exist "~/.poshtheme.omp.json" "~/.poshtheme.omp.json" "-r" diff --git a/_home/dot_sz.shrc.d/31_zfs b/_home/dot_sz.shrc.d/31_zfs new file mode 100644 index 0000000..e24d27e --- /dev/null +++ b/_home/dot_sz.shrc.d/31_zfs @@ -0,0 +1,3 @@ +if [[ -n "$(type -fP zfs)" ]]; then + alias zls='sudo zfs list -o name,used,avail,refer,canmount,mounted,mountpoint' +fi diff --git a/_home/dot_zshrc b/_home/dot_zshrc new file mode 100644 index 0000000..60a686e --- /dev/null +++ b/_home/dot_zshrc @@ -0,0 +1,14 @@ +# The following lines were added by compinstall + +zstyle ':completion:*' completer _complete _ignored +zstyle :compinstall filename '/mnt/szmedia/USERDATA/home/sz/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=99999 +bindkey -e +# End of lines configured by zsh-newuser-install diff --git a/_home/private_dot_ssh/authorized_keys.template b/_home/private_dot_ssh/authorized_keys.template new file mode 100644 index 0000000..bc6ddd8 --- /dev/null +++ b/_home/private_dot_ssh/authorized_keys.template @@ -0,0 +1,8 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEDcpSI8dqeZiu/rHLOcjhXW2p/MxFos/aVsGhQgy7sS szkolnik@Sygin +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL7qryNnf9zUZ5E+DD4z9yHugCkrIrFMXigvRfFSlhod szkolnik@LAPTOP-CAFNU5ND +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDGTHkB6rVlGwMYPMq8e9/3gR9LGV1FhWogmf3KhsvwG varonis\gszkolnik@GSZKOLNIK-LT2 +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII2OMZBGSMz8CXip80Kla0H7v5NxsIedVTY3vW3If8pX gsz@varonis-labs +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDKIw8CpzqOPDChLA0cQ/BTFFv3k8v1rSwnbeR6Xuw3b szdocker@szdocker +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKF7pTCCo88FpglQDJlIrKRhuBnOR2GI9Hg4Hce3WzgO root@szdocker +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZFHnsPCs/4lupKJnOhXZH+TmpkxVdatqCRH79zicw8 root@wolfpack +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFu/tEYb3/KubefZhMrUEvMf/4hvjfyNCJ6n9sWLLGeq ubuntu@ubuntu