Helps centralize dotfiles to a single repository
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix submodules having the wrong path

nnuuvv c7d130fc 7ff3e876

+14 -1
+14 -1
src/dotfiles.gleam
··· 142 142 use _ <- result.try( 143 143 shellout.command( 144 144 run: "git", 145 - with: ["submodule", "add", link, filepath.join(home, spec.dotfiles_path)], 145 + with: [ 146 + "submodule", 147 + "add", 148 + link, 149 + spec.dotfiles_path |> drop_first_dir, 150 + ], 146 151 in: filepath.join(home, dotfiles), 147 152 opt: [], 148 153 ) ··· 151 156 152 157 use _ <- result.try(make_symlink_from_spec(spec, home)) 153 158 persist_spec(spec, home) 159 + } 160 + 161 + /// drops the first directory from a path 162 + /// 163 + fn drop_first_dir(path: String) { 164 + filepath.split(path) 165 + |> list.drop(1) 166 + |> list.fold("", filepath.join) 154 167 } 155 168 156 169 fn show_help() {