alias downloads=‘Downloads’
alias Downloads=‘downloads’
What was the new one? Pay respects?
Zoxide:
z ds
Just another reason to use fish
I use nushell btw, but I do agree fish autocompletions are the best!
I love fish. I just hate that it’s not posix compliant, so if I need to run posix stuff I need to switch to sh
posix stuff
need to switch to sh
Then it turns out it was bash specific stuff
why not zsh? that’s why I switched from fish
Why? Scripts can still invoke the needed shell? Or are you taking about things that like to set up a shell environment?
ZSH will tab-complete it even if you have a small D
zsh not letting down our short king Ds
bcachefs entered the chat. Linus slammed the chat close.
So I realize this is a joke, but, and I am legit asking, isn’t there a command where you can tell Linux to treat Downloads and downloads as the same thing?
I guess you could use an ntfs filesystem… Or if you just mean for autocompletion, I’ve found that if there’s no completions matching e.g.
readme
then zsh will autocompleteREADME
. But I’d say case sensitivity of files is a feature not a bug. People use it to make files starting with a capital letter appear at the top of a list of files in a directory.I’ve kind of just accepted this is one of the differences between Linux and Windows that we as users need to understand is OS-specific.
You can use casefold option on ext4.
In Bash you can use a shell option to alter this behavior:
shopt -s nocaseglob
. See https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html for more options.Maybe, but there is always the possibility that Downloads and downloads both exist in that path and in a case sensitive file system, those are going to be two completely different directories, so adding that obfuscation on top might wind up biting you later.
That’s where case-insensitive tab complete comes in. You can still tab through downloads and Downloads, and it doesn’t impact anything else.
Sorta. If you put a FAT32 disk or sd card into a Linux system and mount it, it will ignore case because of the way the filenames are stored in that filesystem. However, there are a lot of important features you lose working on filesystems like that, so really it should be reserved for sneakernet with other operating systems.
Symlink ?
$ ln -s ~/Downloads downloads
You can even hard link it if you feel fancy.You can’t hardlink directories on a standard *nix filesystem. NTFS has that in the form of Junctions and it’s likely made more messes than it has prevented.
Ah, yes, my bad. Need a file for hard links.
I have yet to see anyone brave enough, to mount /home to NTFS
$ ln -s ~/Downloads downloads
ln -s is a symlink. You’re better off editing user-dirs.dirs anyway
try out zoxide
D