FreeBSD on only TTY as a Daily Driver

Autologin if you want it entirely automatic. (Did you get that issue in the thread resolved? I recall it being a little fiddly)

And then in your .profile, you will want something like:

Code:
if [ "$(tty)" = "/dev/ttyv0" ]; then
  exec tmux
fi

(There are tmux arguments that attach to an existing one if running or starting a new one if not but I don't have my old scripts on me to check currently)

I find the following steps work quite well for tmux autostart
  1. start tmux in background
  2. start irssi in tmux
  3. start mutt in tmux
  4. attach to tmux
I'm still finding my way around tmux, I wish I had come across it ten years ago!

One thing I've found, and I don't if it's just me, but when I run under Xterm I can switch between windows using C-> or C-< where
as in text mode it's C-b > or C-b < . (I actually use q as my prefix.)

I'm still looking for a script which will start three programs, but prog2 and prog3 should be in a vertically split window.

It sounds simple enough but getting this working has escaped me so far.

In addition I'm not sure if this can be achieved via tmux.conf or via a separate script.
 
Note: You will definitely want the binary. Term39 has a 1911 lines worth of dependencies with over 50 of them being for FreeBSD.

(For comparison, Tmux has 1 dependency (libevent))

I'm still finding my way around tmux, I wish I had come across it ten years ago!

One thing I've found, and I don't if it's just me, but when I run under Xterm I can switch between windows using C-> or C-< where
as in text mode it's C-b > or C-b < . (I actually use q as my prefix.)
I do just use <C-b>1, <C-b>2, etc to change between windows. Now I think about it, it isn't ideal for a keypress but its the default so I don't need to tweak things too much.
In addition I'm not sure if this can be achieved via tmux.conf or via a separate script.
So many tmux options (and I don't split windows because my laptops tend to have tiny screens) but I believe:

$ tmux new-session -A is what you want to create a new session only if one doesn't already exist. -d is used to keep it in background for now.

But for your case, I would put it in a shell script (or .profile with the final tmux command as exec. So something like:

Code:
$ tmux new-session -Ad
$ tmux new-window irssi
$ tmux new-window mutt
$ exec tmux attach

If this works, I am sure there is an argument that can be passed with/in-place of new-window to split instead (looks to be split-window).
 
If you search customized themes for vt check this repository there are lot of them and they are FreeBSD specific:

If one wants a fancy sysutils/tmux alternative there is sysutils/zellij, it's not bad, keybindings are more intuitive than tmux . This program won't make everyone happy for sure but it worth the try.
 
I just wondered what most text mode users use as their shell....

I use sh, but feel that I need to change because of my excessive use of mc. I don't really want to use bash. What do most people here use?
 
"root" and normal users /bin/csh. I want the shell prompt to be color coded so that I can see at a glance what kind of user account I am currently logged in from which I am executing commands. "root" red colored, normal users green.

/bin/sh doesn't allow prompt color coding (that I know of).

Experimental zsh(1) for normal users.
 
  • bash-static (though I think the package is broken again and pulls in extra cruft).
  • oksh-static
I actually prefer bash but have moved away from it on most of my machines because I imagine Linux will break it soon. Hook up to systemd or enforce intellisense or something stupid.
 
/bin/sh doesn't allow prompt color coding (that I know of)
I've struggled with this as well (under 13.5-RELEASE at least). However, it looks like it might work under 15.0 (maybe 14.3 as well, I haven't tried yet). Watch the following video where the poster colourises his prompt under /bin/sh using his ~/.shrc. I haven't checked the sh source code for recent changes but I'm assuming that improvements to /bin/sh are being made with each release. Especially as /bin/sh looks like it's going to eventually be made the default shell.
 
Ironically I run default sh for root and user 🫡

I might - close your eyes do not read past this point <- - get Rust and nushell to running to see what it does
 
tcsh for root and user.
sh can use colors in prompt (testested in 15.0-RELEASE, maybe it should works in 14.x-RELEASE too) but do not manage well multiline prompt
 
I've struggled with this as well (under 13.5-RELEASE at least). However, it looks like it might work under 15.0 (maybe 14.3 as well, I haven't tried yet). Watch the following video where the poster colourises his prompt under /bin/sh using his ~/.shrc. I haven't checked the sh source code for recent changes but I'm assuming that improvements to /bin/sh are being made with each release. Especially as /bin/sh looks like it's going to eventually be made the default shell.
I had forgotten that Bourne shells can be color coded (as of 14.0). An internet search led to


 
Back
Top