134
u/augugusto Nov 08 '20
I have zsh configured to sole this. I'm so happy
114
Nov 08 '20
zsh: "Here, dumbass, let me fix that for you. You're a very good user, yes you are, who's a good user? Good boy."
13
3
u/ivgd Nov 08 '20
I don't know this package. Does it move you in the folder even if the casing is incorrect?
21
u/mandibal Nov 08 '20
zsh is just a vastly superior shell to bash imo, it has a lot of modern niceties and customization. One nice thing it can do is correct case on tab complete if it finds something that matches
3
u/ivgd Nov 08 '20
That's quite interesting, thanks for the info. I'm going to try it out
12
u/mandibal Nov 08 '20
Sure thing. If you enjoy it and find yourself wanting even more customization... https://ohmyz.sh
6
u/ivgd Nov 09 '20
Well thank you and the post indirectly, because I had no idea this existed, and now that I've tried it out I can say it's so much better in many ways. I am amazed
1
u/gman1230321 Sep 24 '24
I believe the above comment is referring to z, or its better known successor, zoxide (https://github.com/ajeetdsouza/zoxide)
3
u/mandibal Sep 24 '24 •
![]()
how tf did you end up on a three year old thread lmao
3
1
u/gman1230321 Sep 24 '24
Huh, it appears I did. I think I was sorted top of all time without realizing
2
3
u/gryphus-one Nov 09 '20
I edited my XDG config so the default downloads folder now has a lowercase d.
1
36
u/fruitsnekz Nov 08 '20
Z enters the chat
21
u/Tuckertcs Nov 08 '20
As a newbie to Linux, what’s Z?
80
u/I_Am_The_Goodest_Boy Nov 08 '20
It is the last letter of the alphabet.
25
9
Nov 08 '20
I think it means zsh, which automatically fixes this for you. You can even type in a long path and leave out multiple caps and it'll figure out what you meant. (It's a shell, BTW -- you'd use zsh in place of bash or sh, for instance.)
15
u/blue-dork Nov 08 '20
Its zsh (its a shell like bash basicly where your command are executed) which has plugins like correct which auro corrects your mistakes (example: you write cl it asks you if you mean cp which is the closest command) and it also highlights with red if you write an uncorrect commamd andalso autofills your command which you used with parameters...etc there are lotsof plugins for zsh its like bash but its easier to use if you want to try it i recomment manjaro gnome i believe has it installed by default you can try it in a vm i reccoment virt-manager with QEMU/KVM if you have any questions feel free to ask
3
u/wereldburger Nov 09 '20
Are bash scripts guaranteed to work with zsh?
1
u/blue-dork Nov 09 '20 edited Nov 09 '20
Yeah they work u just have the change the first line to #!/bin/zsh but bash is required by lots of utilities example: xz,automake, neofetch,man-db ..etc i believe these cant be installed withought bash. zsh is basicly same as bash but with plugins correct me if im wrong
6
2
0
62
u/tajarhina Nov 08 '20
Hell just froze over, tho.
Can't wait to exchange external disks with my Turkish friends, and all of glibc and friends going crazy over the ıIiİ troubles.
36
Nov 08 '20
"We know it's a crazy and stupid thing to do. And we know that, exactly because people have done it,"
Jesus Christ how the fuck does he retain this much information. He has been working on the Linux kernel for decades and yet he can retain information about the times people tried to handle case-sensitivity? How much data has gone past that dude's eyeballs for him to remember that inane shit?
Truly impresses you about how amazing the brain can be (not mine). I should do less drugs, but I'm not going to hmph >:/
18
9
u/naxaypu Nov 08 '20
cd İndirilenlerterminal: dude wtf?!?!?!I used mint in Turkish and actually localization was pretty damn good but one day I decided to switch to English... and this change somehow fucked up apt and then entire setup
48
u/divinealien Nov 08 '20 edited Nov 09 '20
anybody using fish? or all people using zsh?
12
u/Substantial_Pie_5696 Nov 08 '20
Joined for beginner friendliness, stayed for out of box configs
3
u/TooManyTakenUsers Nov 09 '20
If you want POSIX-compliance, check out fizsh. Zsh with a fish-like default config
1
4
6
11
u/pahakala Nov 09 '20
Just tell BASH to ignore case. https://askubuntu.com/questions/87061/can-i-make-tab-auto-completion-case-insensitive-in-bash
set completion-ignore-case On2
8
12
6
5
5
Nov 09 '20
Me using zsh who tabs after dow and has it autocomplete to Downloads: "I don't have such weaknesses"
1
u/anonymous_2187 Oct 15 '21
This is the way
3
u/TheDroidNextDoor Oct 15 '21
This Is The Way Leaderboard
1.
u/Flat-Yogurtcloset293475775 times.2.
u/GMEshares69696 times.3.
u/Competitive-Poem-53324156 times...
2164.
u/anonymous_218728 times.beep boop I am a bot and this action was performed ^automatically.
15
u/reditdidit Nov 08 '20
touch downloads Problem solved :)
30
12
8
4
u/rxm17 Nov 08 '20
Lots of people saying they have zsh for this to work, but you can also have bash handle it with .inputrc
4
10
u/tajarhina Nov 08 '20
echo 'rm -Rf ~/Downloads' >> ~/.bashrc
Background: The only file name that is allowed to contain uppercase letters is Makefile.
6
u/Gollorium Nov 08 '20
Instead of keeping removing the directory, you should try to discover what program is creating it. To solve it for me I had to install xdg-user-dirs, set the directories I want in ~/.config/user-dirs.dirs, then I had to go to Firefox and change its default directory for downloads.
2
u/tajarhina Nov 08 '20
My Firefox does insist on creating this directory even if I change the default target. I've given up.
1
u/CodenameLambda Nov 08 '20
For me everything just dumps everything into my home directory. I don't know why, but I do prefer it that way, so who cares?
2
u/Gollorium Nov 08 '20 edited Nov 08 '20
I am the exact opposite. I even stopped using vim and started using neovim because I can't stand a .vimrc and .vim folder in ~. Atm I have 12 directories in ~, 10 are dot directories (including .local, .config, .cache)
2
u/CodenameLambda Nov 08 '20
I also use nvim but have either
.vimrcor the nvim location symlinked to the other. And I also have a.vimfolder.I don't mind having those things in my home directory, it means I always see how much stuff I've amassed and when I should clean something up and subsequently ignore that and keep throwing even more into my home directory...
2
u/eanat Nov 08 '20
I sometimes use PascalCase and camelCase for a name of some personal files and even have files that contain more than one space character or invisible character around (maybe there's a file containing a newline character in my archive but who cares when I don't?). However I abuse file names, GNU/Linux handles them perfectly. Although shell script sometimes went amok because of file names like --rf, it is nature of shell script; we can't prevent it however we're carefully quoting every case, because there's always an edge case somewhere. We should use a script language like Python to prevent the quoting issue.
Basically any character except '/' can be used for a file name on ext4, and I think the developer wanted to give to users a freedom to name a file without a headache.
2
u/PorridgeRocket Nov 08 '20
I moved my Downloads directory to downloads. Doesn't mix with Documents which are meant to be more serious 😁
2
2
u/BryanKeller Nov 09 '20
You can mkfs ext4 with the experimental case insensitivity flag and it will simply work. At a kernel level. A >5.4 kernel is probably necessary.
2
4
2
1
1
u/JustACleverKid Aug 30 '26
The case-insensitive case-preserving APFS: of course, sir i know exactly what you mean
1
1
1
1
1
1
u/MasterGeekMX Ask me how to exit vim Nov 08 '20
Create simbolic links for each folder in your home:
for dir in $(ls -F | grep \/ | cut -f 1 -d /)
do
ln -s $dir $(echo .$dir | tr [:upper:] [:lower:])
doneIf someone wants a breakdown of what is happening, comment.
1
1
1
1
1
1
u/sk8r_dude Nov 09 '20
You know your home folder names are not canon? You can use any folder as your downloads folder. Mine is called “dw”.
1
1
u/dog-paste-666 Nov 09 '20
what's the command to anticipate long list that you can break down by pages?
1
u/denisde4ev Nov 09 '20
or when I type fast and press "D" and "O" almost the same time
cd DOwnloads
this is why I have done ln -sr D{o,O}wnloads
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
Nov 08 '20
[deleted]
141
Nov 08 '20
Someone Give this man auto word completion
114
u/mirsella Nov 08 '20
most importantly, case insensitive tab completion
72
Nov 08 '20
( ^ _ - ) ohmyzsh it is
49
10
u/mirsella Nov 08 '20
imo ohmyzsh is really not needed, using antibody btw
6
Nov 08 '20
It's just personal preference i don't wanna fight :)
34
u/gnutrino Nov 08 '20
And you call yourself a linux user!? What's the point if you don't gleefully charge into flame wars.
5
Nov 08 '20
Why should i be getting flames both are linux shell lmao u fool
13
u/gnutrino Nov 08 '20
EMACS and vim are both unix editors but they've still managed to cultivate a decades long flame war.
13
Nov 08 '20
So you want to start a war alright zsh is so much better you are too dumb to even understand that now shut up and install zsh right away
→ More replies (0)1
2
Nov 09 '20
You don’t need zsh for this, you can do it with the inputrc file
2
Nov 09 '20
Everybody is free to choose whatever they want to use its just my personal preference i respect every other methods!
1
u/Marc_MK Nov 08 '20
Case insensitivity is just an option for you zshrc
You don't need ohmyzsh plugin manager for that
5
u/Kormoraan Nov 08 '20
case insensitive tab completion
yikes no. d and D are different characters.
6
u/mirsella Nov 08 '20
not when you want to
cd dow<tab>5
u/Kormoraan Nov 08 '20
when I do
cd dow<tab>I expect my shell to expand it to stuff that starts withdow, not withDowordOworDOWor anything like that. let's not act like we don't even have case-sensitive file systems and shells.5
u/mirsella Nov 08 '20
maybe it has priority for strict matching then when keep pressing tab it goes for less strict match. each it's preference, for me I prefer case insensitive tab completion, it's not a big deal
40
u/ContrastO159 Nov 08 '20
sudo bash -c 'echo "set completion-ignore-case on" >> /etc/inputrc'would like to have a conversation with you8
u/AndreaBaldanziCA Nov 08 '20
Does it work well?
8
2
u/ContrastO159 Nov 08 '20
I don’t need anything that bash doesn’t offer so I haven’t really tested anything else expect than zsh on my phone which rarely gets used anyways. But I think bash’s case insensitive autocompletion works well
3
u/Maoschanz Nov 08 '20
why doing this as admin?
12
u/FreeeRoam Nov 08 '20
Because the output is being appended to a file within /etc.
17
u/GrilledCarts Nov 08 '20
Right, but this could probably just go in
~/.inputrc, which wouldn’t require changing it for all users.14
8
0
Nov 08 '20
[deleted]
65
u/Asion001 Nov 08 '20
alias downloads="Downloads" better
69
u/pushpusher Nov 08 '20 edited Nov 08 '20
You can alias arguments? That doesn't seem safe..
Edit: just tested this and it doesn't work on bash
24
u/Asion001 Nov 08 '20 edited Nov 08 '20
Oops, i forget... Alias work only if this word first.
Try alias "cd downloads"="cd Downloads" U can also in first argument write " cd d", how want.5
3
u/warp4ever1 Nov 09 '20
In that case I would prefer: alias downloads=“cd Downloads”
4
u/Haz001 Nov 09 '20
Use
~/so it works from any directory and echo it to.inputrcto save it.echo 'alias downloads="cd ~/Downloads/"' >> ~/.inputrc3
u/MisterBober Arch BTW Feb 19 '22
bash:
shopt -s cdable_vars export downloads=$HOME/Downloadszsh:
setopt -s cdablevars export downloads=$HOME/Downloads1
u/warp4ever1 Nov 17 '20
Not quite. All syntax after = “must be quoted”
In ~/.bash_aliases add: alias downloads= “~/Downloads”
Add to ~/,bashrc
If [-f ~/.bash_aliases]; then .~/.bash_aliases if
Confirm with $:source .bashrc
1
u/marshall_dteach May 30 '22
Why not just type
cd dopress tab if directory comes you go inside if doesnt you change to capital :/0
u/backtickbot Nov 09 '20
Hello, Haz001. Just a quick heads up!
It seems that you have attempted to use triple backticks (```) for your codeblock/monospace text block.
This isn't universally supported on reddit, for some users your comment will look not as intended.
You can avoid this by indenting every line with 4 spaces instead.
There are also other methods that offer a bit better compatability like the "codeblock" format feature on new Reddit.
Have a good day, Haz001.
You can opt out by replying with "backtickopt6" to this comment. Configure to send allerts to PMs instead by replying with "backtickbbotdm5". Exit PMMode by sending "dmmode_end".
4
0
Dec 05 '20
[deleted]
1
u/backtickbot Dec 05 '20
Hello, ImMaaxYT: code blocks using backticks (```) don't work on all versions of Reddit!
Some users see this / this instead.
To fix this, indent every line with 4 spaces instead. It's a bit annoying, but then your code blocks are properly formatted for everyone.
An easy way to do this is to use the code-block button in the editor. If it's not working, try switching to the fancy-pants editor and back again.
Comment with formatting fixed for old.reddit.com users
You can opt out by replying with backtickopt6 to this comment.
4
3
213
u/DaKine511 Nov 08 '20
You're just not sensitive enough...