These are chat archives for ellipsis/ellipsis

30th
Dec 2015
Samuel Hodgkins
@samis
Dec 30 2015 01:08
hi
anyone around?
Samuel Hodgkins
@samis
Dec 30 2015 01:32
@zeekay ?
Samuel Hodgkins
@samis
Dec 30 2015 01:48
I'm wondering how I might import dotfiles managed by GNU Stow
Zach Kelling
@zeekay
Dec 30 2015 03:30
Hi
I'm not familiar with Stow
Interesting
reading about Stow now, @samis
Do you have a link to your dotfiles @samis?
Zach Kelling
@zeekay
Dec 30 2015 03:36
Well right now it kinda expects the files not to have the . in front
i could make that configurable though
but generally just drop in a ellipsis.sh into your folder
I have a somewhat similar example here: https://github.com/zeekay/dot-files
Zach Kelling
@zeekay
Dec 30 2015 03:42
just create a pkg.link function and you can call fs.link_files on each containing dir that you are using for grouping things
pkg.link() {
    fs.link_files bash   
    fs.link_files emacs  
    fs.link_files git    
    fs.link_files gtk    
    fs.link_files htop   
    fs.link_files nano   
    fs.link_files vim    
    fs.link_files xorg   
    fs.link_files zsh
}
is all you'd need
Zach Kelling
@zeekay
Dec 30 2015 03:49
you could also split them out into their own repos
like dot-zsh dot-xorg dot-vim dot-nano, etc
and then you can install/uninstall them individually
which is kind of convenient and more like what i do
The normal behavior is:
pkg.link() {
    fs.link_files $PKG_PATH
}
Which will just link everything inside your repository excluding any dot-files, README, ellipsis.sh, etc.
Zach Kelling
@zeekay
Dec 30 2015 03:54
I've considered making it either work with . files somehow, or making a variant for people that prefer to keep the . prefix inside the dotfiles package
Leaving ., stripping . and dot- all seem like common approaches.
The accepted convention (for now at least) is to take all your files, stick them in a repo stripping the . and let ellipsis add it back when linking them into place. This makes it possible to distinguinsh between version control related dotfiles like .gitignore and the actual files you want linked.
Hopefully that makes sense, I guess we need to add some better examples/tutorial/etc. Possibly support . prefixed files for people coming from a setup where that was the preferred approach.
Zach Kelling
@zeekay
Dec 30 2015 04:28
I added a helper to ellipsis to make it easy to convert if you are interested in that approach: ellipsis strip
It will remove the . from your existing files in a given dir
Zach Kelling
@zeekay
Dec 30 2015 04:41
https://github.com/zeekay/dot-samis this would be one approach
Gertjan Roggemans
@groggemans
Dec 30 2015 11:03
It would also be nice to have an fs.link_xxx function that doesn't prepend a dot to the files. This was something i found inconvenient when switching my vim config (i should've taken the time to write an issue or make a PR)
by the way, my PR at https://github.com/webpro/awesome-dotfiles has been merged :smile:
Zach Kelling
@zeekay
Dec 30 2015 12:17
Nice!
Yeah, maybe worth making configurable?
Gertjan Roggemans
@groggemans
Dec 30 2015 13:49
definitely worth it