Dotfiles! Here's how I organize them.

Поділитися
Вставка
  • Опубліковано 10 жов 2024

КОМЕНТАРІ • 47

  • @darthkielbasa
    @darthkielbasa 7 місяців тому +3

    I’m very been tossing around the idea of organizing dotfiles. The algorithm knows me well.

  • @pantasioinfo
    @pantasioinfo Рік тому +12

    Stow still the best. Stow is the symbolic link farm manager.

    • @TheArnold002
      @TheArnold002 7 місяців тому +3

      Wouldn't they solve different use-cases? This seems is better for having a different hierarchy in the dotfile directory than the symlinked directory. As well as allows for a relationship between the two besides a direct parent/child relation.

    • @rickyindragunawan384
      @rickyindragunawan384 Місяць тому

      @@TheArnold002 not really, using stow you can also have different hierarchy and they don't have to be parent/child relation you can set them manually, see the 'man stow'

  • @laughingvampire7555
    @laughingvampire7555 Рік тому +4

    homebrew also makes it for linux, they call it Linuxbrew and the command works just the same, the problem is that the packages are a lot less.

  • @HyperFocusMarshmallow
    @HyperFocusMarshmallow Рік тому +4

    To actually have scripts that would be setup everything on a new Mac (or whatever) seems like it could need a lot of work to maintain. Unless you do it very often it might be better to just do a bit of it manually.
    I guess you could do broad outline stuff.

  • @Metruzanca
    @Metruzanca Рік тому +3

    4:40 - I have wanted to do the same exact thing and then I found that brew actually works on linux (you just can't use casks). So for stuff like alacritty you'll need to either use apt/pacman or use cargo install alacritty (which will take some time to build from src).
    I'm also trying to support a WSL setup where I'd need to use winget for alacritty and symlink the config over on the windows fs (messy).

    • @uaQt
      @uaQt 4 місяці тому +1

      Would imagine Windows is not as good for this as a Unix based option

  • @dimaj1
    @dimaj1 Рік тому

    Very cool setup!
    I just redid mine using zshell, it allows you to install dependencies from various sources (primarily git-based). For example, if I want to install 'exa', I would do something like this:
    zi ice wait'!' from"gh-r" as"program" pick"bin/exa" \
    atload"alias ls='exa'; alias tree='exa -T'"
    zi light ogham/exa
    and it would automatically figure out which release to get based on the computer I am on.

  • @matthewbell5282
    @matthewbell5282 2 роки тому +10

    Hey really liking your videos. Wondering if you could you make one about when to use *.d.ts vs just putting your types in the same file as your regular code. (How to organize a typescript project)

    • @andrew-burgess
      @andrew-burgess  2 роки тому +4

      Greta idea, thanks! Adding it to my list 👍

    • @larzonForYa
      @larzonForYa 2 роки тому

      +1 for this! :)

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj Рік тому

      the only time you should be writing definition files (*.d.ts) manually is if you're converting a javascript library for typesafe use in typescript. Otherwise typescript will generate definition files for your library automatically when you build it.

    • @thi-m10
      @thi-m10 Рік тому

      Currently I'm working on a AngularJS legacy project with no perspective of being upgraded to Typescript or any modern framework even in a long term.
      So I'm starting to use some *.d.ts files and import then as comments just for intellisense and to show off to my backend collegues that Javascript is not as bad as they think, it just need some types.

  • @ganeshbabu8263
    @ganeshbabu8263 8 місяців тому

    That precmd make sense 😊

  • @ezswan
    @ezswan Місяць тому

    ive been using stow. however i still am confused about the application.
    are you supposed to keep a repository of dotfiles within ~/dotfiles separate from .config files?

  • @rmdev
    @rmdev Рік тому +1

    Any plans to show off what kind of equipment you're using? I'm interested in knowing what your keyboard is

    • @andrew-burgess
      @andrew-burgess  Рік тому +1

      That could be a fun video! Thanks for the suggestion!

  • @Marcus001
    @Marcus001 Місяць тому

    Can this be platform agnostic? I have a Mac but I want to be able to sync without problems with a Linux machine

  • @biscotty6669
    @biscotty6669 8 місяців тому +3

    Isn't stow (gnu) available on mac?

    • @TheArnold002
      @TheArnold002 7 місяців тому +1

      It is. Though I imagine this is better for having a different hierarchy in the dotfile directory than the symlinked directory. As well as allows for a relationship between the two besides a direct parent/child relation.

  • @alonso0188
    @alonso0188 11 місяців тому

    Thanks manito.

  • @wilfredv1930
    @wilfredv1930 2 роки тому +1

    thanks for sharing

  • @ozmosyd
    @ozmosyd 11 місяців тому

    Love it. Thanks for sharing chap!

  • @mrlectus
    @mrlectus 5 місяців тому

    does this mean i have to move every config from .config to dotfile and then symlink them back to .config?

  • @WilsonMar1
    @WilsonMar1 2 місяці тому

    Why do you use zsh instead of bash when Linux is bash?

  • @moneyfr
    @moneyfr Рік тому +3

    I use chezmoi it's great I can encrypt my private rc dot files with "age"

  • @michaelkrailo5725
    @michaelkrailo5725 7 місяців тому

    And Alacritty changed from yml to toml. Nothing like constant change to keep you on your toes.

  • @TreeLuvBurdpu
    @TreeLuvBurdpu 8 місяців тому

    Wait, I'm new to this a little, coming from Windows. Others are using Ansible for the installs. Is Alacrity like that?

  • @wendlefluff
    @wendlefluff 8 місяців тому

    Have you tried linux brew?

  • @HyperFocusMarshmallow
    @HyperFocusMarshmallow Рік тому

    Great stuff!

  • @bulelanibotman
    @bulelanibotman Рік тому

    informative video! thank you for sharing

  • @wolfisraging
    @wolfisraging 7 місяців тому

    use gnu stow!

  • @joshpack
    @joshpack Рік тому

    You lost me at Zed 🤣

  • @StefanoPompa
    @StefanoPompa 9 місяців тому

    I think NixOs could interest you

  • @BrunoReisVideo
    @BrunoReisVideo 2 роки тому

    oh wow you were fast 😅

  • @anasouardini
    @anasouardini Рік тому +1

    Why the symlinks? use a bare repository.

    • @andrew-burgess
      @andrew-burgess  Рік тому

      Not familiar with that approach, can you say more?

    • @juicef1987
      @juicef1987 Рік тому

      Love the channel btw!

    • @anasouardini
      @anasouardini Рік тому +1

      ​@@andrew-burgess If only youtube would get off their asses and fix that filtering criteria. It might be the totally legit link I pasted although it was a really known domain name(atlasian).
      Anyways, the idea is that you use a bare git repository where the file system of the repo is your $HOME, and the repo itself is in its own directory, say .dotfiles, and then you only track the files from your home that need to be included in the repo, and every time you add>commit>push it'll only pick the up the changes of those explicitly tracked files.
      If you google it, you'll get an atlasian page explaining that. Sorry I can't link it because of the really smart team behind youtube's interface.
      I hope this doesn't get deleted.

    • @aim__freakz8499
      @aim__freakz8499 8 місяців тому

      @@anasouardini this sounds amazing

  • @siuyutpang2335
    @siuyutpang2335 9 місяців тому +2

    use precmd partially source alias is genius 😂

  • @fms6306
    @fms6306 Рік тому +1

    You left nvim 😱 what are you using now instead and don't say vscode

    • @andrew-burgess
      @andrew-burgess  Рік тому +3

      Still neovim! Just been trying out an nvim config set called lunarvim. Liking it so far!