Skip to content

hsteinshiromoto/dotfiles

Repository files navigation

GitHub tag (latest SemVer) LICENSE

Dotfiles

My dotfiles.

Structure

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

Requirements

Workflow

New dotfile

  1. Create an empty file in the correct location in the repository. For instance
touch .file
  1. Run
stow . --adopt
  1. Add file to the version control
git add .file

Favorite Commands

Find

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 {} ‘;

Delta

Compare two files using delta and show the output side-by-side with line numbers

delta <file1> <file2> -sn

Troubleshoot

Atuin

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

  1. Check what exists at destination
ls -la ~/.config/atuin
  1. Remove existing file/directory (backup first if needed)
rm -rf ~/.config/atuin
  1. Ensure parent directory has correct permissions
chmod 755 ~/.config
  1. Retry with absolute paths
ln -sf "$HOME/dotfile/.config/atuin" "$HOME/.config/atuin"

References

[1] https://systemcrafters.net/managing-your-dotfiles/using-gnu-stow/ [2] https://www.youtube.com/watch?v=Z8BL8mdzWHI

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published