Comment

Comment by smitelli

Seems like as good a time as any to show off this cursed thing I keep in my dotfiles:

    # Allow .. through ........... (yup!) to cd up some number of directories.
    for i in {1..10}; do
        spaces=$(printf "%${i}s")
        alias "${spaces// /.}."="cd ${spaces// /../}"
    done
Going into it, I thought it would be something I'd use all the time. In practice all I ever use is `..` and not nearly as much as I originally imagined I would.
parent smitelli 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton