Merge branch 'master' into laptop

This commit is contained in:
Thomas Avé 2024-04-01 01:26:51 +02:00
commit 51e4a72bfd
4 changed files with 7 additions and 5 deletions

View File

@ -5,8 +5,9 @@
##########################################
set -o pipefail
source "$XDG_CONFIG_HOME"/zsh/secrets.sh
export XDG_RUNTIME_DIR=/run/user/1000
export XDG_CONFIG_HOME=/home/server/.config
source "$XDG_CONFIG_HOME"/zsh/secrets.sh
##########################################
# Create sqlite3 backup for Vaultwarden #

2
scripts/start_viewer.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
virt-viewer -c qemu:///system Riva --attach -k

View File

@ -1,5 +1,6 @@
#!/bin/bash
export XDG_CONFIG_HOME=/home/server/.config
source "$XDG_CONFIG_HOME"/zsh/secrets.sh
for _ in {1..2}; do

View File

@ -1,6 +1,4 @@
if [[ -z "${XDG_CONFIG_HOME}" ]]; then
source ~/.profile
fi
source ~/.profile
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
@ -162,7 +160,7 @@ function zvm_after_init() {
if [ "$REMOTE_PATH" != "" ]; then
cd "$REMOTE_PATH"
elif [ "$PREVIOUS_SESSION_ID" != "" ]; then
cd $(readlink -e /proc/$(cat /tmp/ssh_sessions/$PREVIOUS_SESSION_ID)/cwd)
cd "$(readlink -e /proc/$(cat /tmp/ssh_sessions/$PREVIOUS_SESSION_ID)/cwd)"
fi
}