mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Add root account usage notice
This commit is contained in:
parent
a771a70be3
commit
7c37651ee4
|
@ -1,5 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# User .profile definition.
|
||||||
|
# This file is only sourced after login, whereas .bashrc/.zshrc
|
||||||
|
# files will run every time a new terminal is open
|
||||||
|
#
|
||||||
|
# NOTE: This file shouldn't be defined for root account. Sudo
|
||||||
|
# will not source it (and neither will it source .zshrc),
|
||||||
|
# which means the XDG definitions will be ignored anyway, and
|
||||||
|
# defining them may break programs when root is actually logged in.
|
||||||
|
|
||||||
|
|
||||||
# Default programs
|
# Default programs
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export BROWSER="firefox"
|
export BROWSER="firefox"
|
||||||
|
@ -58,7 +68,7 @@ export SUDO_ASKPASS="$HOME/.local/bin/scripts/dmenu/dmenupass"
|
||||||
export PIPENV_VENV_IN_PROJECT=1 # Force pipenv to create new environments within projects ./.venv
|
export PIPENV_VENV_IN_PROJECT=1 # Force pipenv to create new environments within projects ./.venv
|
||||||
#export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
|
#export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
|
||||||
|
|
||||||
# Start graphical session, if startx is aviable
|
# Start graphical session automatically on tty1 if startx is aviable
|
||||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
if command -v startx > /dev/null; then
|
if command -v startx > /dev/null; then
|
||||||
! pidof -s Xorg > /dev/null 2>&1 && exec startx "$XINITRC"
|
! pidof -s Xorg > /dev/null 2>&1 && exec startx "$XINITRC"
|
||||||
|
|
Loading…
Reference in a new issue