Linux
Black screen and LightDM doesn't unlock
Add this to your /etc/lightdm/lightdm.conf file:
|
|
Edit previous commands
fc
is a shell builtin to list and edit previous commands in an editor.
In addition to editing a single line (which you can also do with C-x C-e
), it also allows you to edit and run several lines at the same time.
You use it like this:
List previous commands
|
|
List commands with date (in zsh)
|
|
You can add the date too:
|
|
You can edit a range of commands
|
|
The range can be relative to the current position, so the previous command is equivalent to:
|
|
If you save and exit, all commands are executed as a script, and it will be added to your history.
Source: https://shapeshed.com/unix-fc/
Prevent logoff from killing tmux sessions
Lately I've noticed that logging out of i3, intentionally or when i3 fails, would also kill any tmux or emacs sessions. This is extremely annoying.
This is caused by a new default in logind (systemd's login) to kill user process on logoff.
You can revert this setting in your logind.conf (/etc/systemd/logind.conf
):
|
|
Or only for a specific process (e.g., tmux):
|
|
Source: https://unix.stackexchange.com/questions/490267/prevent-logoff-from-killing-tmux-session