• 0 Posts
  • 81 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle




  • If you’re a programmer: NixOS.

    Define your OS config, which programs to install, and dotfiles in one repo. Install a fresh OS, pull in the repo (nix-shell -p git, because NixOS doesn’t come with git >_> ) and run the command to install the whole thing (sudo nixos-rebuild switch --flake .#wodan for me. wodan is just the name of a config - I have multiple all combines into one repo, so I can share configuration between machines).

    Took me 17 minutes to set up my laptop exactly the same as my Desktop. Same configuration, applications, and OS settings. It’s so fucking nice.

    With Windows, that used to take 2 days to download and install everything manually.

    Only downside: You’ll need to learn Nix-the-language, nix-the-os, and nix-the-terminal-program, which took about a month of deeply digging into the Vimjoyer and LibrePhoenix channels.




  • What are the chances you are GenZ / Alpha?

    Older generations bitch about “damn kids these days don’t respect their elders” ever since at least Socrates.

    The young have always bitched about the older generations being stuck in their ways and being too nostalgic about their own youth.

    This is the way.

    You’re not special.








  • The first two options (autocd and cdspell) have been a lifesaver in fixing my frustrations with the default bash settings (and even lets me stick with bash, instead of feeling I should move to zsh or any other shell.

    I can just type a foldername, tabcomplete it and press enter to go there. It’s great.

    # == shopts ==
    # https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html
    shopt -s autocd         # cd into folder without cd, so 'dotfiles' will cd into the folder
    shopt -s cdspell        # attempt spelling correcting on folders
    shopt -s direxpand      # expand a partial dir name
    shopt -s checkjobs      # stop shell from exit when there's jobs running
    shopt -s dirspell       # attempt spelling correcting on folders
    shopt -s expand_aliases # aliases are expanded
    shopt -s histappend     # append to the history file, don't overwrite it
    shopt -s histreedit     # lets your re-edit old executed command
    shopt -s histverify     # I'm confused.
    shopt -s hostcomplete   # performs completion when a word contains an '@'
    shopt -s cmdhist        # save multiple-line command in single history entry
    shopt -u lithist        # multi-lines are saved with embedded newlines rather than semicolons; explictly unset
    shopt -s checkwinsize # update LINES and COLUMNS to fit output