Skip to content

Salman7236/dots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Managed using the bare git repo method. Popularized by this Hacker News thread.

How to create a list of explicitly installed packages automatically

(From the Arch Wiki: Pacman Tips and Tricks)

  1. Create the pacman hook:

    sudoedit /etc/pacman.d/hooks/pkglist.hook
  2. Paste the following content into the .hook file:

    [Trigger]
    Operation = Install
    Operation = Remove
    Type = Package
    Target = *
    
    [Action]
    When = PostTransaction
    Exec = /bin/sh -c '/usr/bin/pacman -Qqe > ~/pkglist.txt'

Tip

sudoedit uses the editor set by the SUDO_EDITOR environment variable to edit files owned by root as the current user. Running something like sudo nvim opens Neovim without all of the user configuration. That's why your plugins and themes might be missing when you open neovim as root.

About

my dotfiles for arch + hyprland

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published