Code:
user@hawkeye:~:>$uname -a
Linux hawkeye.LINUX 5.15.19 #1 SMP PREEMPT Wed Feb 2 01:50:51 CST 2022 x86_64 Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz GenuineIntel GNU/Linux
user@hawkeye:user:>$distro
Name: Slackware 15.0 x86_64
My laptop ran out of power (power cord not properly connected) and I experienced an hard shutdown.
When I booted up, things was strange.
1st - nvim open files in readonly mode. That was not the case before the "crash" I did have several terminals open with files in nvim when it "crashed"
I can for nvim do :set noreadonly and then I can write the file, but I'm curious to how :set readonly clearly must have been set somehow somewhere when the laptop did the hard shutdown. I've checked all my .lua files for nvim to see if :set readonly have been set anywhere but it seems not
2nd - I have some scripts in .local/bin that before the crash I could run without the full path. Now I need to add the full path to run them. Even if 'echo $PATH' do show that .local/bin are in 'export PATH="$HOME.local/bin:$PATH" in .bash_profile
I've tried to do 'source .bash_profile' to see if the file was not sourced when I log in, but that change nothing. Also all my aliases in .bash_profile works fine.
If there are more strange things going on, I don't know as of yet. Also doing a proper reboot did not change things.
I have no clue to what is going on. Please advice.
EDIT::
I did some more testing by creating a new user "test". The nvim problem are related to my main user only, as nvim open files normal on the test user.
The $PATH issue is also a problem on the newly created test user. I can still not run scripts in .local/bin with out the full path from the test user after adding .local/bin to that users $PATH