I'm having an issue where I can only edit .bashrc or .zshrc files with the nano
command.
When I input code .bashrc
it just opens up an empty .bashrc file. With nano
it works within the shell and it displays the file properly through the command nano .bashrc
, but I hate editing files through nano and I'd rather do that on Visual Studio, any idea how to fix this so that Visual Studio Code could read . files?
Hell, even when editing normal files (i.e. files that aren't hidden with .
) with code
, while it works, git status
doesn't register the change, but it does register it if the file was edited with nano
. Super frustrating as someone who dislikes editing through shell and it's making me consider going back to Git Bash.. even though I much prefer working with zsh on WSL.