Login
You're viewing the ruby.social public feed.
  • Dec 4, 2026, 4:23 AM

    One of my favourite #Amiga :amiga: quirks is the default way to change directory is to simply type the name of the child directory you want to enter, or type '/' to go to the parent dir.

    While doing some work today on my boring modern linux machine I was annoyed at how many times I had to type 'cd', so I looked into reproducing the amiga shell behaviour in bash and it turns out there's it's been an available option for almost 15 years. Adding

    'shopt -s autocd'

    to my .bashrc results in a very similar behaviour. By default it writes the cd command into the console so you can see what happened, which I think I'll keep for now until I get used to it.

    There's a lot of obvious reasons why you wouldn't want this to be the default behaviour but I think that so long as you're aware it's enabled it's a nice feature.

    Screenshot of AmigaShell showing that is possible to change the current directory by typing the name of the directory
    Screenshot of a bash session where I change directories by typing only the name of the directory
    💬 2🔄 1⭐ 0

Replies

  • Dec 4, 2026, 6:10 AM

    @voxel I hope that Linux will bring Amiga's file system assigns some day. 😀

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Dec 4, 2026, 6:59 AM

    @voxel zsh has something similar with setopt.
    setopt autocd is the same and I think oh-my-zsh enables it by default (because I don't remember setting it :) ).

    💬 0🔄 0⭐ 0