Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # To avoid potential situation where cdm(1) crashes on every TTY, here we
- # default to execute cdm(1) on tty1 only, and leave other TTYs untouched.
- # Put this script code into .bashrc or .zshrc or any shell profile
- # You can also add this in the /etc/profile.d/ name it zzz-cdm.sh for Arch Linux
- if [[ "$(tty)" == '/dev/tty1' ]]; then
- [[ -n "$CDM_SPAWN" ]] && return
- # Avoid executing cdm(1) when X11 has already been started.
- [[ -z "$DISPLAY$SSH_TTY$(pgrep xinit)" ]] && exec cdm
- fi
Advertisement
Add Comment
Please, Sign In to add comment