>

Automating dotfiles configuration syncing with symbolic link

An attempt to use symlink to solve file syncing problem I’m a Neovim user. I maintain my Neovim configuration under ~/.config/nvim, as this is the default location where Neovim looks for its configuration files. However, I also store these configuration files (potentially with other configuration files like ~.zshrc) in a Git repository under ~/dotfiles/ (i.e. ~/dotfiles/nvim for Neovim config) for version control and syncing with GitHub. The challenge is that I’ve been manually copying changes between those two directories, which quickly becomes tedious....

September 21, 2024 · 2 min · 290 words · Papattarada A. (Pun Pun)

Interesting Linux stuff

Documenting interesting stuff I learn about Linux/Unix Configure alias Alias can be configured through alias <AN_ALIAS>=<THE_ACTUAL_COMMAND> Example: alias k=kubectl note that this only configures alias for the current shell session. To permanently configure an alias do: echo "alias k='kubectl'" >> ~/.zshrc Use alias to view all alias set Locate files/directories Files/directories could be located through: locate <FILE_NAME> Example: locate hello_world.txt note that locate depends on the database /var/db/locate.database which has to be initialized through: sudo launchctl load -w /System/Library/LaunchDaemons/com....

September 1, 2024 · 1 min · 207 words · Papattarada A. (Pun Pun)