gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.79k stars 3.36k forks source link

phantom \~ directories get made when i start tmux #609

Closed rreagan3 closed 1 year ago

rreagan3 commented 1 year ago

Full disclosure: I modified the .tmux.conf file to change all references from ~/.tmux.conf to ~/.config/tmux/.tmux.conf and same for .tmux.conf.local. It's nice to clone the repo into .config, where I keep all my other dotfile repos.

However, every time I start tmux in a directory, it makes a ~ folder in that directory.

I've tried finding what piece of code is making these directories, but I just can't seem to find it. Any pointers?

It seems to be the code responsible for downloading plugins.

Thanks!

❯ pwd
/home/username/.config/tmux

tmux git/master*  
❯ lsd -al --tree --depth=2
drwxrwxr-x username username 4.0 KB Tue Oct 25 08:49:25 2022  .
drwxrwxr-x username username 4.0 KB Tue Oct 25 08:42:47 2022 ├──  .git
drwxrwxr-x username username 4.0 KB Sun Oct 16 14:44:13 2022 │   ├──  branches
.rw-rw-r-- username username 283 B  Sun Oct 16 14:44:14 2022 │   ├──  config
.rw-rw-r-- username username  73 B  Sun Oct 16 14:44:13 2022 │   ├──  description
.rw-rw-r-- username username 1.1 KB Tue Oct 25 08:32:02 2022 │   ├──  FETCH_HEAD
.rw-rw-r-- username username  23 B  Sun Oct 16 14:44:14 2022 │   ├──  HEAD
drwxrwxr-x username username 4.0 KB Sun Oct 16 14:44:13 2022 │   ├──  hooks
.rw-rw-r-- username username 737 B  Sun Oct 16 17:33:26 2022 │   ├──  index
drwxrwxr-x username username 4.0 KB Sun Oct 16 14:44:13 2022 │   ├──  info
drwxrwxr-x username username 4.0 KB Sun Oct 16 14:44:14 2022 │   ├──  logs
drwxrwxr-x username username 4.0 KB Tue Oct 25 08:32:02 2022 │   ├──  objects
.rw-rw-r-- username username  41 B  Tue Oct 25 08:32:02 2022 │   ├──  ORIG_HEAD
.rw-rw-r-- username username 809 B  Sun Oct 16 14:44:14 2022 │   ├──  packed-refs
drwxrwxr-x username username 4.0 KB Sun Oct 16 14:44:14 2022 │   └──  refs
.rw-rw-r-- username username  78 B  Sun Oct 16 14:44:14 2022 ├──  .gitattributes
drwxrwxr-x username username 4.0 KB Sun Oct 16 14:44:14 2022 ├──  .github
.rw-rw-r-- username username  16 B  Sun Oct 16 14:44:14 2022 │   └──  funding.yml
.rw-rw-r-- username username  11 B  Sun Oct 16 14:44:14 2022 ├──  .gitignore
.rw-rw-r-- username username  79 KB Tue Oct 25 08:40:38 2022 ├──  .tmux.conf
.rw-rw-r-- username username  15 KB Tue Oct 25 08:42:06 2022 ├──  .tmux.conf.local
.rw-rw-r-- username username 1.0 KB Sun Oct 16 14:44:14 2022 ├──  LICENSE.MIT
.rw-rw-r-- username username 479 B  Sun Oct 16 14:44:14 2022 ├──  LICENSE.WTFPLv2
drwxrwxr-x username username 4.0 KB Sun Oct 16 16:42:03 2022 ├──  plugins
.rw-rw-r-- username username  16 KB Sun Oct 16 14:44:14 2022 ├──  README.md
drwxrwxr-x username username 4.0 KB Tue Oct 25 08:49:25 2022 └──  ~
drwxrwxr-x username username 4.0 KB Tue Oct 25 08:49:25 2022     └──  .config
gpakosz commented 1 year ago

Hello @rreagan3 👋

I have no idea. Looks like something you added by changing .tmux.conf which I don't recommend 🤷‍♂️

rreagan3 commented 1 year ago

yeah, i took a gamble there. Where in the file does it call code to download plugins?