petits-scripts-persos/emails
Adrian Amaglio 679a0ff8ce big update
2023-01-24 23:56:39 +01:00

6 lines
225 B
Bash
Executable File

#!/bin/sh
# We setup xauthority file to display stuff
auth="$(xauth extract - "$DISPLAY" | base64)"
exec sudo -u emails sh -c "echo -n '$auth' | base64 -d > ~/.Xauthority && . ~/.bashrc && cd ~/attachements && exec neomutt"