dotter
dotter copied to clipboard
[BUG] Not creating directory symbolic
Environment
- OS: Linux distribution
- Dotter version: dotter 0.13.2
- Additional relevant information
Description
nvim = "~/.config/nvim"
in config instead of creating a directory symlink it creates folder nvim
and symlinks every individual files of nvim/
directory. now if i create any new files or incase application creates any new config on their respective config directory, it won't store that new config on the .dotfiles/nvim
directory.
Reproduction
global.toml
[helpers]
[default]
depends = []
[default.files]
dotter = ""
# nvim = "~/.config/nvim"
"zsh/zshrc" = "~/.zshrc"
"zsh/zsh_history" = "~/.zsh_history"
"zsh/oh-my-zsh" = "~/.oh-my-zsh"
test_dir = "~/.test_dir"
[default.variables]
[settings]
default_target_type = "symbolic"
local.toml
includes = []
packages = ["default"]
[files]
[variables]
file structure:
➜ ~ tree -L 2 .dotfiles
.dotfiles
├── dotter
├── nvim
│  ├── init.lua
│  ├── lazy-lock.json
│  ├── lazyvim.json
│  ├── LICENSE
│  ├── lua
│  ├── README.md
│  └── stylua.toml
└── zsh
├── oh-my-zsh
├── zsh_history
└── zshrc
5 directories, 9 files]
Actual behavior
➜ .dotfiles git:(master) ✗ ./dotter deploy
➜ .dotfiles git:(master) ✗ cd ~
➜ ~ file .oh-my-zsh
.oh-my-zsh: directory
➜ ~ file .oh-my-zsh/plugins
.oh-my-zsh/plugins: directory
➜ ~ file .oh-my-zsh/oh-my-zsh.sh
.oh-my-zsh/oh-my-zsh.sh: symbolic link to /home/niamotullah/.dotfiles/zsh/oh-my-zsh/oh-my-zsh.sh
➜ ~ echo "something" > .oh-my-zsh/test
➜ ~ file .oh-my-zsh/test
.oh-my-zsh/test: ASCII text
➜ ~ file .dotfiles/zsh/oh-my-zsh/test
.dotfiles/zsh/oh-my-zsh/test: cannot open `.dotfiles/zsh/oh-my-zsh/test' (No such file or directory)
Expected behavior
➜ ~ rm -rf .oh-my-zsh
➜ ~ ln -s .dotfiles/zsh/oh-my-zsh .oh-my-zsh
➜ ~ file .oh-my-zsh
.oh-my-zsh: symbolic link to .dotfiles/zsh/oh-my-zsh
➜ ~ file .oh-my-zsh/oh-my-zsh.sh
.oh-my-zsh/oh-my-zsh.sh: ASCII text
➜ ~ file .oh-my-zsh/plugins
.oh-my-zsh/plugins: directory
➜ ~ echo "something" > .oh-my-zsh/test
➜ ~ file .oh-my-zsh/test
.oh-my-zsh/test: ASCII text
➜ ~ file .dotfiles/zsh/oh-my-zsh/test
.dotfiles/zsh/oh-my-zsh/test: ASCII text
``