.zlogin
1 |
# Script to be ran upon logging in (Basically the .bash_login file). |
2 |
|
3 |
# First, boot the GNU Emacs daemon. This usually takes a relatively long time, |
4 |
# allowing the computer to establish an internet connection in the meantime, so |
5 |
# it can synchronize the directories and pull changes in repositories. |
6 |
echo -e "Booting GNU Emacs...\n" |
7 |
emacs --daemon=gnuemacs |
8 |
echo -e "GNU Emacs booted as 'gnuemacs' daemon.\n" |
9 |
|
10 |
# by pulling all changes in the repositories: |
11 |
echo -e "Updating all repositories...\n" |
12 |
cd ~/Repositories |
13 |
for directory in */ ; do |
14 |
cd $directory |
15 |
git pull |
16 |
cd .. # Returning to Repositories |
17 |
done |
18 |
|
19 |
cd ~ # Return to home |
20 |
|
21 |
echo -e "Synchronizing data has been disabled!\n" |
22 |
#echo -e "Synchronizing remaining university data...\n" |
23 |
#rsync -a -P --delete -e ssh maarten@maartenv.be:/home/maarten/Documenten/University ~ |
24 |
#rsync -a -P --delete -e ssh maarten@maartenv.be:/home/maarten/backup/shared ~ |
25 |
|
26 |
echo -e "All tasks completed. Initializing Sway boot process... OwO" |
27 |
# Start X |
28 |
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then |
29 |
exec sway |
30 |
fi |