this post was submitted on 02 Oct 2023
1418 points (96.8% liked)

Programmer Humor

19660 readers
545 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
(page 2) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 1 year ago

OMZ and TAB gang raise up!

[–] xnasero 11 points 1 year ago* (last edited 1 year ago) (10 children)

Op does not know about $CDPATH and tab completion keke

load more comments (10 replies)
[–] [email protected] 9 points 1 year ago (1 children)

i renamed my home folders to dl, docs, pics, etc. and use auto-cd (whatever its called) to just type dl instead of cd dl

[–] [email protected] 10 points 1 year ago (7 children)

You could just use aliases in your bashrc

alias dl=cd ~/Downloads

Might need quotes around the command.

load more comments (7 replies)
[–] [email protected] 8 points 1 year ago (7 children)

There are two Linux paradigms that I consider stupid. One is the use of centralized software repositories managed by the distro instead of individual developer maintained installers. The other one is file system case sensibility. They already admitted defeat on the first one with the rise of containerised applications. I wonder how much longer they'll keep the charade on the second one.

[–] [email protected] 5 points 1 year ago

I have a third one for you. Not being able to pick where things install. Everything installs to the os disk. Terrible idea.

load more comments (6 replies)
[–] [email protected] 7 points 1 year ago (1 children)

Here's how to fix this[+]

Create $HOME/.config/user-dirs.dirs with

XDG_DOWNLOAD_DIR="$HOME/downloads"

You may need to logout/in for things to reread this file.

The full list of keys is:

  • XDG_DESKTOP_DIR
  • XDG_DOWNLOAD_DIR
  • XDG_TEMPLATES_DIR
  • XDG_PUBLICSHARE_DIR
  • XDG_DOCUMENTS_DIR
  • XDG_MUSIC_DIR
  • XDG_PICTURES_DIR
  • XDG_VIDEOS_DIR

+: Since this is Linux, this is a fix for many but not all cases.

load more comments (1 replies)
[–] [email protected] 7 points 1 year ago (8 children)

You can also disable case sensivity in bash

load more comments (8 replies)
[–] [email protected] 7 points 1 year ago (4 children)

Just make a downloads folder if you absolutely want to go there

[–] [email protected] 10 points 1 year ago (2 children)
load more comments (2 replies)
load more comments (3 replies)
[–] [email protected] 6 points 1 year ago

cd dow *tab

[–] [email protected] 6 points 1 year ago

Zoxide and cd down. ;)

load more comments
view more: ‹ prev next ›