aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index 410e3b3..70d8b20 100644
--- a/zshrc
+++ b/zshrc
@@ -10,6 +10,11 @@ pgrep -x ssh-agent > /dev/null || start_ssh_agent
# Start X?
if [[ "${TTY}" == "/dev/tty1" ]]; then
+ STTY='-echo' ${HOME}/.cargo/bin/hatch
+ if [ "$?" != "0" ]; then
+ exit 1
+ fi
+
startx
exit 0
fi