desktop-config/roles/desktop-environment/templates/bash_profile.j2

20 lines
479 B
Bash
Raw Normal View History

2023-11-22 22:55:38 +01:00
#!/bin/bash
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# Fix gpg for git commit signing
export GPG_TTY=$(tty)
# Autostart sway at login
2023-11-26 22:24:59 +01:00
{% if isVm | bool %}
2023-11-26 20:54:40 +01:00
export WLR_NO_HARDWARE_CURSORS=1
{% endif %}
2023-11-22 22:55:38 +01:00
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec sway; fi