Append text to .bashrc

This commit is contained in:
Manuel Thalmann 2022-11-13 01:16:22 +01:00
parent f6de967e2a
commit e0e85ba68b
2 changed files with 2 additions and 2 deletions

View file

@ -15,5 +15,5 @@ else
echo "alias ls='logo-ls -D'" echo "alias ls='logo-ls -D'"
echo "alias ll='ls -al'" echo "alias ll='ls -al'"
echo "alias l='ls'" echo "alias l='ls'"
} | sudo -u $1 tee $homeDir/.bashrc } | sudo -u $1 tee -a $homeDir/.bashrc
fi fi

View file

@ -18,5 +18,5 @@ else
homeDir=$(sudo -u $1 bash -c 'realpath ~') homeDir=$(sudo -u $1 bash -c 'realpath ~')
echo 'eval "$(oh-my-posh init bash --config ~/Nextcloud/.omp/manuel.omp.json)' \ 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 fi