From ba88e0a131fe8c1148cee3136f2548ac269d0f3c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 24 Aug 2020 10:55:32 -0300 Subject: Add .bash_profile file and copy it with scp on deployment --- bash-profile.sh | 1 + nixos-switch.sh | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 bash-profile.sh diff --git a/bash-profile.sh b/bash-profile.sh new file mode 100644 index 0000000..a4dbf1d --- /dev/null +++ b/bash-profile.sh @@ -0,0 +1 @@ +alias l='ls -lahp' diff --git a/nixos-switch.sh b/nixos-switch.sh index 01e8817..6567e4c 100755 --- a/nixos-switch.sh +++ b/nixos-switch.sh @@ -9,6 +9,8 @@ echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S nix-channel --add "https://nixos.or echo "${USER_PASSWORD}" | ssh "$TLD" sudo -S -i nixos-rebuild switch --upgrade rsync -avzP favicons/ "${TLD}:${DATA_ROOT}/favicons/" +scp bash-profile.sh "${TLD}:.bash_profile" + # shellcheck disable=2050 if [[ true = false ]]; then echo Ugly hack to change TLS certificates permissions -- cgit v1.2.3