From e0e85ba68bba7c37edfa5f55306e34e4d07e48f7 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 13 Nov 2022 01:16:22 +0100 Subject: [PATCH] Append text to `.bashrc` --- scripts/PopOS/software/logo-ls.sh | 2 +- scripts/PopOS/software/oh-my-posh.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/PopOS/software/logo-ls.sh b/scripts/PopOS/software/logo-ls.sh index e937ae68..8346e097 100644 --- a/scripts/PopOS/software/logo-ls.sh +++ b/scripts/PopOS/software/logo-ls.sh @@ -15,5 +15,5 @@ else echo "alias ls='logo-ls -D'" echo "alias ll='ls -al'" echo "alias l='ls'" - } | sudo -u $1 tee $homeDir/.bashrc + } | sudo -u $1 tee -a $homeDir/.bashrc fi diff --git a/scripts/PopOS/software/oh-my-posh.sh b/scripts/PopOS/software/oh-my-posh.sh index 1e93132f..309cad5e 100644 --- a/scripts/PopOS/software/oh-my-posh.sh +++ b/scripts/PopOS/software/oh-my-posh.sh @@ -18,5 +18,5 @@ else homeDir=$(sudo -u $1 bash -c 'realpath ~') echo 'eval "$(oh-my-posh init bash --config ~/Nextcloud/.omp/manuel.omp.json)' \ - | sudo -u $1 tee $homeDir/.bashrc + | sudo -u $1 tee -a $homeDir/.bashrc fi