My dotfiles.
The structure of this repository must be the same as the structure as the config files in the $HOME
folder.
.
├── .config
│ ├── bat
│ ├── btop
│ ├── code-server
│ ├── karabiner
│ ├── kitty
│ ├── mc
│ ├── neofetch
│ ├── nix-darwin
│ ├── nvim
│ │ └── lua
│ │ ├── config
│ │ ├── plugins
│ │ │ ├── ai
│ │ │ ├── colorscheme
│ │ │ ├── completion
│ │ │ ├── dap
│ │ │ ├── dashboard
│ │ │ ├── extras
│ │ │ │ ├── lang
│ │ │ │ ├── pde
│ │ │ │ │ └── notes
│ │ │ │ └── ui
│ │ │ │ ├── statuscol
│ │ │ │ └── statusline
│ │ │ ├── lsp
│ │ │ └── test
│ │ └── utils
│ └── tmuxinator
├── .local
│ ├── bin
│ └── share
│ ├── code-server
│ │ └── User
│ └── mc
│ └── skins
├── .vscode
│ └── extensions
├── bin
├── etc
├── keyboards
│ ├── BNR1
│ ├── bridge75
│ ├── epomaker
│ ├── melgeek
│ │ └── mojo84
│ ├── monsgeek
│ └── nuphy
├── macos
│ └── Library
│ ├── Application Support
│ │ ├── Code
│ │ │ └── User
│ │ └── espanso
│ │ ├── config
│ │ ├── match
│ │ │ └── packages
│ │ └── user
│ └── KeyBindings
├── roles
└── utils
└── prompts
- Create an empty file in the correct location in the repository. For instance
touch .file
- Run
stow . --adopt
- Add file to the version control
git add .file
Find a file in the current directory
find . -type f -name “<filename>”
Run grep on every file returned by find
find . -type f -name “<filename>” -exec grep -n “<string>” -i /dev/null —color=always {} ‘;’
Compare two files using delta and show the output side-by-side with line numbers
delta <file1> <file2> -sn
If the you get the following issue with atuin
, when trying to setup symlink to the config file:
$ ln -sf /Users/hsteinshiromoto/Projects/dotfiles.linux/.config/atuin /Users/hsteinshiromoto/.config
ln: /Users/hsteinshiromoto/.config/atuin: Operation not permitted
Use the following solution: Clean destination and check permissions
- Check what exists at destination
ls -la ~/.config/atuin
- Remove existing file/directory (backup first if needed)
rm -rf ~/.config/atuin
- Ensure parent directory has correct permissions
chmod 755 ~/.config
- Retry with absolute paths
ln -sf "$HOME/dotfile/.config/atuin" "$HOME/.config/atuin"
[1] https://systemcrafters.net/managing-your-dotfiles/using-gnu-stow/ [2] https://www.youtube.com/watch?v=Z8BL8mdzWHI