You are not logged in.
Hi,
this is my first post within this community, because I couldn't find anything on this topic. So I hope I do everything correctly.
My problem is that at some time in the past I started to encounter '~' directories within different subdirectories. It is not marked as a symlink by ll and links to my home directory.
Now I know that this "some time in the past" is pretty unspecific, but it didn't bother me enough in the beginning and planned to fix it later. Now it happens more and more often that
I get it has "untracked" in my git status, which annoys me.
Around that time I switched from bash to fish. So I though maybe fish could be the reason, but I couldn't find anything on the fish arch wiki page.
The fish shell starts itself from within the .bashrc and replaces the bash process like explained in the aw:
if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" && -z ${BASH_EXECUTION_STRING} ]]
then
exec fish
fiWorkstation:
Kernel: 5.17.5-5-arch1-1 (multiple arch updates happened, while the problem was still occuring)
Shell: fish
WM: i3
Terminal: alacritty
Thanks for any ideas, I will gladly add helpful information you request.
Offline
that's not what a hardlink is. What does `file '~'` give you, making sure to use those single quotes.
Offline
What do you mean "give me"? When I enter cd '~' the result of pwd is /home/user/
Last edited by kaffeekind (2022-05-04 18:36:33)
Offline
What does `file '~'` give you, making sure to use those single quotes.
Offline
Sry, took me a while. You mean the file command, i guess? It gives me: ~: directory
Offline
Please post your full shell configs (side note, why are you launchig fish from bash?)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
Which part of the shell config? The .bashrc? All files from ~/.config/fish/ ?
I chose that option because I followed the arch wiki's explanation:
Compared to the following options, this is the most universal solution, since it works both on a local machine and on a SSH server.
Offline
Compared to the following options, this is the most universal solution, since it works both on a local machine and on a SSH server.
Your regular reminder that fish is OMZ for bash.
Offline
Which part of the shell config?
The whole thing. For both shells.
As for that section of the wiki - it's wrong - and likely rarely relevant (edit: and the shell pedants among us have discussed it before).
Last edited by Trilby (2022-05-04 21:25:51)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
Also check
ls $(pwd)'/~' the quotes are *important*
I'm pretty convinced that I know what happens, but not through what - and if the shell rc's don't hint at it, the directories content might.
Your regular reminder that fish is OMZ for bash.
fish is OMZ for fish ![]()
Online