From 611085bfe643f5e6a741f1b957b75b252e62dae3 Mon Sep 17 00:00:00 2001 From: Brieuc Dubois Date: Sat, 27 Jan 2024 00:39:01 +0100 Subject: [PATCH] Run as root & :Vterm --- root/home/bhasher/.vimrc | 3 +++ scripts/sync.sh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/root/home/bhasher/.vimrc b/root/home/bhasher/.vimrc index 81b3e68..84d7dcd 100644 --- a/root/home/bhasher/.vimrc +++ b/root/home/bhasher/.vimrc @@ -9,3 +9,6 @@ :set expandtab :set tabstop=8 :set softtabstop=0 +:set splitright + +:command Vterm vertical terminal \ No newline at end of file diff --git a/scripts/sync.sh b/scripts/sync.sh index ec6e124..13e812b 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -3,6 +3,11 @@ src_dir="../root" dst_dir="/" +if [ "$EUID" -ne 0 ]; then + echo "Please run as root" + exit +fi + amount=0 function create_hard_links() {