# this file: # https://dataswamp.org/~incal/conf/.zprofile [[ $(uname) == "Linux" ]] || return tmux-new-session-split () { tmux new-session\; split-window -v\; select-pane -U } lkeys () { # sudo chmod +s /bin/loadkeys loadkeys -q -c -s /etc/console-setup/remap.inc } # effectuate changes in ~/cols/color_sets/normal # then restart tty exec-cols () { echo -n '\033]R' } fix-font () { sudo setfont Lat7-TerminusBold16 # /usr/share/consolefonts/ ~/cols/run normal } init-vt () { exec-cols setterm -term linux -blength 0 > $(tty) fix-font 2> /dev/null } init-vt visit-all-vts () { for v in {1..6}; do chvt $v sleep 0.1 done chvt 1 } init-vt-once () { local blink=/sys/class/graphics/fbcon/cursor_blink sudo chmod a+w $blink echo 0 > $blink lkeys } . ~/sol-fb xdir=~/x tty_number=${TTY#/dev/tty} case $tty_number in (1) init-vt-once make -C ~/.emacs.d/emacs-init emacs --debug-init -nw 2> emacs-errors.txt ;; (2) tmux-new-session-split ;; (3) clear; fbterm ;; (4) tmux-new-session-split ;; (5) clear ;; (6) startx -- -nocursor > ${xdir}/stdout.txt 2> ${xdir}/stderr.txt ;; esac